mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
4
types/Grid/Row.d.ts
vendored
4
types/Grid/Row.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface RowProps {
|
||||
export interface RowProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set to `true` to render a custom HTML element
|
||||
* Props are destructured as `props` in the default slot (e.g. <Row let:props><section {...props}>...</section></Row>)
|
||||
|
@ -42,7 +42,7 @@ export interface RowProps {
|
|||
export default class Row {
|
||||
$$prop_def: RowProps;
|
||||
$$slot_def: {
|
||||
default: { props?: { class: string; [key: string]: any } };
|
||||
default: { props: { class: string; [key: string]: any } };
|
||||
};
|
||||
|
||||
$on(eventname: string, cb: (event: Event) => void): () => void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue