File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
packages/kit-headless/src/utils Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-explicit-any */
22import { AriaAttributes } from '@builder.io/qwik' ;
3- import { propertiesOf } from 'ts-reflection' ;
3+ // import { propertiesOf } from 'ts-reflection';
44
55type ToCamelCase < S extends string > = S extends `${infer Head } -${infer Tail } `
66 ? `${Head } ${Capitalize < ToCamelCase < Tail > > } `
@@ -37,13 +37,15 @@ export type ExtendedPropsByAriaAttribute<T = undefined> = T extends object
3737export function isKeyOfQwikUiAriaAttributes (
3838 key : string
3939) : key is keyof QwikUiAriaAttributesKebab {
40- const ariaAttributeKeys = propertiesOf < QwikUiAriaAttributesKebab > ( ) ;
41- return ariaAttributeKeys . includes ( key as keyof QwikUiAriaAttributesKebab ) ;
40+ // const ariaAttributeKeys = propertiesOf<QwikUiAriaAttributesKebab>();
41+ // return ariaAttributeKeys.includes(key as keyof QwikUiAriaAttributesKebab);
42+ return true ;
4243}
4344
4445export function isKeyOfAriaAttributes (
4546 key : string
4647) : key is keyof AriaAttributes {
47- const ariaAttributeKeys = propertiesOf < AriaAttributes > ( ) ;
48- return ariaAttributeKeys . includes ( key as keyof AriaAttributes ) ;
48+ // const ariaAttributeKeys = propertiesOf<AriaAttributes>();
49+ // return ariaAttributeKeys.includes(key as keyof AriaAttributes);
50+ return true ;
4951}
You can’t perform that action at this time.
0 commit comments