mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: re-run npm run build:docs
This commit is contained in:
parent
e23a4d1994
commit
647b5ab784
6 changed files with 82 additions and 83 deletions
16
types/DataTable/DataTableTypes.d.ts
vendored
16
types/DataTable/DataTableTypes.d.ts
vendored
|
@ -2,17 +2,17 @@ type PathDepth = [never, 0, 1, 2, ...0[]];
|
|||
|
||||
type Join<K, P> = K extends string | number
|
||||
? P extends string | number
|
||||
? `${K}${"" extends P ? "" : "."}${P}`
|
||||
: never
|
||||
? `${K}${"" extends P ? "" : "."}${P}`
|
||||
: never
|
||||
: never;
|
||||
|
||||
// For performance, the maximum traversal depth is 10.
|
||||
export type PropertyPath<T, D extends number = 10> = [D] extends [never]
|
||||
? never
|
||||
: T extends object
|
||||
? {
|
||||
[K in keyof T]-?: K extends string | number
|
||||
? `${K}` | Join<K, PropertyPath<T[K], PathDepth[D]>>
|
||||
: never;
|
||||
}[keyof T]
|
||||
: "";
|
||||
? {
|
||||
[K in keyof T]-?: K extends string | number
|
||||
? `${K}` | Join<K, PropertyPath<T[K], PathDepth[D]>>
|
||||
: never;
|
||||
}[keyof T]
|
||||
: "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue