mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
9 lines
305 B
TypeScript
9 lines
305 B
TypeScript
import * as Handlebars from 'handlebars';
|
|
|
|
export function registerHandlebarHelpers(): void {
|
|
Handlebars.registerHelper('eq', function(a: string, b: string, options: Handlebars.HelperOptions): string {
|
|
// @ts-ignore
|
|
return a === b ? options.fn(this) : options.inverse(this);
|
|
});
|
|
}
|