-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aeeb237
commit efd05fc
Showing
2 changed files
with
61 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export declare interface User { | ||
id: number | ||
name: string | ||
email: string | ||
} | ||
export declare interface ApiResponse<T> { | ||
status: number | ||
message: string | ||
data: T | ||
} | ||
export declare interface ResponseData { | ||
success: boolean | ||
data: User[] | ||
} | ||
export declare interface Product { | ||
id: number | ||
name: string | ||
price: number | ||
} | ||
export declare interface AuthResponse { | ||
token: string | ||
expiresIn: number | ||
} | ||
declare interface Options<T> { | ||
name: string | ||
cwd?: string | ||
defaultConfig: T | ||
} | ||
export declare interface ComplexGeneric<T extends Record<string, unknown>, K extends keyof T> { | ||
data: T | ||
key: K | ||
value: T[K] | ||
transform: (input: T[K]) => string | ||
nested: Array<Partial<T>> | ||
} | ||
export declare interface DefaultGeneric< | ||
T = string, | ||
K extends keyof any = string, | ||
V extends Record<K, T> = Record<K, T> |