Browse Source

feat: add system type map as constant to schematics

pull/5137/head
Arman Ozak 6 years ago
parent
commit
b3db883ce9
  1. 1
      npm/ng-packs/packages/schematics/src/constants/index.ts
  2. 22
      npm/ng-packs/packages/schematics/src/constants/system-types.ts

1
npm/ng-packs/packages/schematics/src/constants/index.ts

@ -1 +1,2 @@
export * from './api';
export * from './system-types';

22
npm/ng-packs/packages/schematics/src/constants/system-types.ts

@ -0,0 +1,22 @@
export const SYSTEM_TYPES = new Map([
['Bool', 'boolean'],
['Byte', 'number'],
['Char', 'string'],
['DateTime', 'string'],
['DateTimeOffset', 'string'],
['Decimal', 'number'],
['Double', 'number'],
['Guid', 'string'],
['Int16', 'number'],
['Int32', 'number'],
['Int64', 'number'],
['Object', 'object'],
['Sbyte', 'number'],
['Single', 'number'],
['String', 'string'],
['TimeSpan', 'string'],
['UInt16', 'number'],
['UInt32', 'number'],
['UInt64', 'number'],
['Void', 'void'],
]);
Loading…
Cancel
Save