aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/utils.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-05-03 10:58:41 +0200
committerGitHub <[email protected]>2022-05-03 10:58:41 +0200
commitcc46a0c19af2752b6210c24b715fcce20197b6d9 (patch)
treecc3974effa2ff34a498adf5a0edfe52560806720 /src/definitions/utils.ts
parent385c03aec9b769c557eb6973abf42accc5650256 (diff)
downloadfaker-cc46a0c19af2752b6210c24b715fcce20197b6d9.tar.xz
faker-cc46a0c19af2752b6210c24b715fcce20197b6d9.zip
chore: remove obsolete definition key constants (#910)
Diffstat (limited to 'src/definitions/utils.ts')
-rw-r--r--src/definitions/utils.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/definitions/utils.ts b/src/definitions/utils.ts
deleted file mode 100644
index 03764c1d..00000000
--- a/src/definitions/utils.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-// https://stackoverflow.com/a/53395649/4573065
-export type AllOf<T> = ['Needs to be all of', T];
-
-/**
- * Creates a function that requires all keys of the generic type to be used as parameters.
- * The function itself will return the given parameters.
- */
-export function allOf<T>(): <U extends T[]>(
- ...array: U & ([T] extends [U[number]] ? unknown : AllOf<T>[])
-) => U & ([T] extends [U[number]] ? unknown : AllOf<T>[]) {
- return (...array) => array;
-}