bobflux-gen
Version:
Generator for monkey files in bobflux application.
14 lines (13 loc) • 426 B
text/typescript
import * as ts from 'typescript';
export function EdmInt32ToTs(odataType: string): ts.SyntaxKind {
switch (odataType) {
case 'Edm.Int32':
return ts.SyntaxKind.NumberKeyword;
case 'Edm.String':
return ts.SyntaxKind.StringKeyword;
case 'Edm.DateTimeOffset':
return ts.SyntaxKind.StringKeyword;
default:
return ts.SyntaxKind.AnyKeyword;
}
}