mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(types): use type alias instead of interface for $$restProps
This commit is contained in:
parent
57e99f3a4c
commit
6fbd8ae6a9
165 changed files with 752 additions and 463 deletions
4
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
4
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
|
@ -4,7 +4,7 @@ export type BreakpointSize = "sm" | "md" | "lg" | "xlg" | "max";
|
|||
|
||||
export type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584;
|
||||
|
||||
export interface BreakpointProps {
|
||||
export type BreakpointProps = {
|
||||
/**
|
||||
* Determine the current Carbon grid breakpoint size
|
||||
* @default undefined
|
||||
|
@ -16,7 +16,7 @@ export interface BreakpointProps {
|
|||
* @default { sm: false, md: false, lg: false, xlg: false, max: false, }
|
||||
*/
|
||||
sizes?: Record<BreakpointSize, boolean>;
|
||||
}
|
||||
};
|
||||
|
||||
export default class Breakpoint extends SvelteComponentTyped<
|
||||
BreakpointProps,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue