mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(types): upgrade sveld and type constant props as accessors (#742)
This commit is contained in:
parent
fac78ee4aa
commit
54e1e07872
10 changed files with 63 additions and 61 deletions
16
types/Breakpoint/Breakpoint.d.ts
vendored
16
types/Breakpoint/Breakpoint.d.ts
vendored
|
@ -16,13 +16,6 @@ export interface BreakpointProps {
|
|||
* @default { sm: false, md: false, lg: false, xlg: false, max: false, }
|
||||
*/
|
||||
sizes?: Record<BreakpointSize, boolean>;
|
||||
|
||||
/**
|
||||
* Reference the Carbon grid breakpoints
|
||||
* @constant
|
||||
* @default { sm: 320, md: 672, lg: 1056, xlg: 1312, max: 1584, }
|
||||
*/
|
||||
breakpoints?: { sm: 320; md: 672; lg: 1056; xlg: 1312; max: 1584 };
|
||||
}
|
||||
|
||||
export default class Breakpoint extends SvelteComponentTyped<
|
||||
|
@ -34,4 +27,11 @@ export default class Breakpoint extends SvelteComponentTyped<
|
|||
}>;
|
||||
},
|
||||
{ default: { size: BreakpointSize; sizes: Record<BreakpointSize, boolean> } }
|
||||
> {}
|
||||
> {
|
||||
/**
|
||||
* Reference the Carbon grid breakpoints
|
||||
* @constant
|
||||
* @default { sm: 320, md: 672, lg: 1056, xlg: 1312, max: 1584, }
|
||||
*/
|
||||
breakpoints: Record<BreakpointSize, BreakpointValue>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue