Skip to content

Commit efeefa6

Browse files
committed
wip
1 parent f6d0d54 commit efeefa6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/core/src/jsonc.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,19 @@ export function buildJsonc(config: any): string {
9898
// 直接使用 comment-json 的 stringify,它会保留注释
9999
return stringify(processedConfig, null, 2)
100100
}
101+
102+
export function define(config: Record<string, any>): Define {
103+
return new Define(config)
104+
}
105+
106+
export class Define {
107+
constructor(private config: Record<string, any>) {}
108+
109+
public if(): this {
110+
return this
111+
}
112+
113+
public nif(): this {
114+
return this
115+
}
116+
}

0 commit comments

Comments
 (0)