fix(types): upgrade sveld and type constant props as accessors (#742)

This commit is contained in:
Eric Liu 2021-07-11 07:21:50 -07:00 committed by GitHub
commit 54e1e07872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 63 additions and 61 deletions

View file

@ -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>;
}