Skip to content

Commit

Permalink
feat(types): add SvelteSchemaKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoner committed Jul 18, 2020
1 parent 1b94b94 commit 2827df6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/lib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,20 @@ export interface ErrorRecord {

export type Errors = ErrorRecord | Error[];

export type SvelteSchemaKeys =
| "field"
| "wrapper"
| "ctrl"
| "itemWrapper"
| "itemCtrl"
| "itemForm";

export interface SvelteSchema extends JSONSchema {
$svelte?: {
component?: typeof SvelteComponent;
props?: Props;
[P in SvelteSchemaKeys]: {
component?: typeof SvelteComponent;
props?: Props;
};
};
}

Expand Down

0 comments on commit 2827df6

Please sign in to comment.