diff options
| author | ST-DDT <[email protected]> | 2022-02-01 17:31:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-01 17:31:52 +0100 |
| commit | 5e6754da61b63019fd063fad26adbeeabd8b789b (patch) | |
| tree | 954f7730feba92d951f66862d9165b99645f8981 /src/definitions/database.ts | |
| parent | 18b4349af05ca671f1fc4cff0c04d359e914f001 (diff) | |
| download | faker-5e6754da61b63019fd063fad26adbeeabd8b789b.tar.xz faker-5e6754da61b63019fd063fad26adbeeabd8b789b.zip | |
feat(types): provide strong typing for locales (#363)
Diffstat (limited to 'src/definitions/database.ts')
| -rw-r--r-- | src/definitions/database.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/definitions/database.ts b/src/definitions/database.ts new file mode 100644 index 00000000..935f35fc --- /dev/null +++ b/src/definitions/database.ts @@ -0,0 +1,33 @@ +import { allOf } from './utils'; + +/** + * The possible definitions related to databases. + */ +export interface DatabaseDefinitions { + /** + * Database Engine + */ + engine: string[]; + /** + * Database Collation + */ + collation: string[]; + /** + * Column names + */ + column: string[]; + /** + * Column types + */ + type: string[]; +} + +/** + * Internal: A list of all keys for the DatabaseDefinitions. + */ +export const DATABASE = allOf<keyof DatabaseDefinitions>()( + 'collation', + 'column', + 'engine', + 'type' +); |
