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 1
1
/* eslint-disable @typescript-eslint/no-explicit-any */
2
2
import { AriaAttributes } from '@builder.io/qwik' ;
3
- import { propertiesOf } from 'ts-reflection' ;
3
+ // import { propertiesOf } from 'ts-reflection';
4
4
5
5
type ToCamelCase < S extends string > = S extends `${infer Head } -${infer Tail } `
6
6
? `${Head } ${Capitalize < ToCamelCase < Tail > > } `
@@ -37,13 +37,15 @@ export type ExtendedPropsByAriaAttribute<T = undefined> = T extends object
37
37
export function isKeyOfQwikUiAriaAttributes (
38
38
key : string
39
39
) : 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 ;
42
43
}
43
44
44
45
export function isKeyOfAriaAttributes (
45
46
key : string
46
47
) : 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 ;
49
51
}
You can’t perform that action at this time.
0 commit comments