Skip to content

Commit

Permalink
chore: better type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Aug 19, 2024
1 parent d4947f0 commit bc26eb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/language-core/lib/codegen/script/globalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ declare global {
type __VLS_PrettifyGlobal<T> = { [K in keyof T]: T[K]; } & {};
type __VLS_PickRefsExpose<T> = T extends object
? { [K in keyof T]: ('expose' extends keyof T[K]
// @ts-ignore
? Parameters<T[K]['expose']>[0]
? Parameters<any & T[K]['expose']>[0]
: T[K] extends any[]
? Parameters<T[K][0]['expose']>[0][]
: T[K]) | null }
Expand Down

0 comments on commit bc26eb5

Please sign in to comment.