Skip to content

Commit 3e326a3

Browse files
committedApr 1, 2024
re-export codegen Preset type
1 parent cde1d6f commit 3e326a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const omit = <T extends {}, K extends keyof T | PropertyKey>(obj: T, keys: K[])
1414
return Object.fromEntries(Object.entries(obj).filter(([k]) => !omitted.has(k as K))) as Omit<T, K>
1515
}
1616

17+
/** Re-export of the `Preset` type from `eslint-plugin-codegen`. Useful for adding types to custom codegen functions */
18+
export type CodegenPreset<T extends {} = {}> = codegen.Preset<T>
19+
1720
export type ConfigLike = {
1821
files?: string[]
1922
processor?: string

0 commit comments

Comments
 (0)