Skip to content

Commit efd05fc

Browse files
committed
chore: wip
1 parent aeeb237 commit efd05fc

File tree

2 files changed

+61
-22
lines changed

2 files changed

+61
-22
lines changed

fixtures/wip/interface.ts renamed to fixtures/input/interface.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,26 @@ export interface DefaultGeneric<
6464
/**
6565
* Regular expression patterns used throughout the module
6666
*/
67-
interface RegexPatterns {
68-
/** Import type declarations */
69-
readonly typeImport: RegExp
70-
/** Regular import declarations */
71-
readonly regularImport: RegExp
72-
/** Async function declarations */
73-
readonly asyncFunction: RegExp
74-
/** Generic type parameters */
75-
readonly functionOverload: RegExp
76-
/** Module declaration pattern */
77-
readonly moduleDeclaration: RegExp
78-
/**
79-
* Module augmentation pattern
80-
*/
81-
readonly moduleAugmentation: RegExp
82-
}
67+
// interface RegexPatterns {
68+
// /** Import type declarations */
69+
// readonly typeImport: RegExp
70+
// /** Regular import declarations */
71+
// readonly regularImport: RegExp
72+
// /** Async function declarations */
73+
// readonly asyncFunction: RegExp
74+
// /** Generic type parameters */
75+
// readonly functionOverload: RegExp
76+
// /** Module declaration pattern */
77+
// readonly moduleDeclaration: RegExp
78+
// /**
79+
// * Module augmentation pattern
80+
// */
81+
// readonly moduleAugmentation: RegExp
82+
// }
8383

84-
export interface ImportTrackingState {
85-
typeImports: Map<string, Set<string>>
86-
valueImports: Map<string, Set<string>>
87-
usedTypes: Set<string>
88-
usedValues: Set<string>
89-
}
84+
// export interface ImportTrackingState {
85+
// typeImports: Map<string, Set<string>>
86+
// valueImports: Map<string, Set<string>>
87+
// usedTypes: Set<string>
88+
// usedValues: Set<string>
89+
// }

fixtures/output/interface.d.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
export declare interface User {
2+
id: number
3+
name: string
4+
email: string
5+
}
6+
export declare interface ApiResponse<T> {
7+
status: number
8+
message: string
9+
data: T
10+
}
11+
export declare interface ResponseData {
12+
success: boolean
13+
data: User[]
14+
}
15+
export declare interface Product {
16+
id: number
17+
name: string
18+
price: number
19+
}
20+
export declare interface AuthResponse {
21+
token: string
22+
expiresIn: number
23+
}
24+
declare interface Options<T> {
25+
name: string
26+
cwd?: string
27+
defaultConfig: T
28+
}
29+
export declare interface ComplexGeneric<T extends Record<string, unknown>, K extends keyof T> {
30+
data: T
31+
key: K
32+
value: T[K]
33+
transform: (input: T[K]) => string
34+
nested: Array<Partial<T>>
35+
}
36+
export declare interface DefaultGeneric<
37+
T = string,
38+
K extends keyof any = string,
39+
V extends Record<K, T> = Record<K, T>

0 commit comments

Comments
 (0)