feat: typescript part 1

Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
JellyBrick
2023-09-03 00:25:48 +09:00
parent 3e3fdb3c3f
commit 82bcadcd64
57 changed files with 3958 additions and 968 deletions

View File

@ -1,3 +0,0 @@
const isTesting = () => process.env.NODE_ENV === 'test';
module.exports = { isTesting };

3
utils/testing.ts Normal file
View File

@ -0,0 +1,3 @@
export const isTesting = () => process.env.NODE_ENV === 'test';
export default { isTesting };

5
utils/type-utils.ts Normal file
View File

@ -0,0 +1,5 @@
export type Entries<T> = {
[K in keyof T]: [K, T[K]];
}[keyof T][];
export type ValueOf<T> = T[keyof T];