Skip to content

Commit

Permalink
feat: add null for native element
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuanzmj committed Aug 13, 2024
1 parent f805b30 commit d4947f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/language-core/lib/codegen/script/globalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ 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]
? { [K in keyof T]: ('expose' extends keyof T[K]
// @ts-ignore
? Parameters<T[K]['expose']>[0] | null
? Parameters<T[K]['expose']>[0]
: T[K] extends any[]
? Parameters<T[K][0]['expose']>[0][] | null
: T[K] }
? Parameters<T[K][0]['expose']>[0][]
: T[K]) | null }
: never;
}
export const __VLS_globalTypesEnd = {};
Expand Down

0 comments on commit d4947f0

Please sign in to comment.