Skip to content

Commit

Permalink
test(rest-props): rename rest-props example to avoid name clash (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Oct 25, 2024
1 parent b005412 commit 3e38573
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
58 changes: 29 additions & 29 deletions tests/__snapshots__/fixtures.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -893,21 +893,6 @@ exports[`fixtures (JSON) "context-module/input.svelte" 1`] = `
}"
`;

exports[`fixtures (JSON) "rest-props/input.svelte" 1`] = `
"{
"props": [],
"moduleExports": [],
"slots": [],
"events": [],
"typedefs": [],
"generics": null,
"rest_props": {
"type": "Element",
"name": "h1"
}
}"
`;

exports[`fixtures (JSON) "rest-props-multiple/input.svelte" 1`] = `
"{
"props": [
Expand Down Expand Up @@ -1059,6 +1044,21 @@ exports[`fixtures (JSON) "typedef/input.svelte" 1`] = `
}"
`;

exports[`fixtures (JSON) "rest-props-simple/input.svelte" 1`] = `
"{
"props": [],
"moduleExports": [],
"slots": [],
"events": [],
"typedefs": [],
"generics": null,
"rest_props": {
"type": "Element",
"name": "h1"
}
}"
`;

exports[`fixtures (JSON) "anchor-props/input.svelte" 1`] = `
"{
"props": [],
Expand Down Expand Up @@ -1715,20 +1715,6 @@ export default class ContextModule extends SvelteComponentTyped<ContextModulePro
"
`;
exports[`fixtures (TypeScript) "rest-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["h1"];
export interface RestPropsProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class RestProps extends SvelteComponentTyped<RestPropsProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "rest-props-multiple/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
Expand Down Expand Up @@ -1822,6 +1808,20 @@ export default class Typedef extends SvelteComponentTyped<
"
`;
exports[`fixtures (TypeScript) "rest-props-simple/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["h1"];
export interface RestPropsSimpleProps extends RestProps {
[key: \`data-${string}\`]: any;
}
export default class RestPropsSimple extends SvelteComponentTyped<RestPropsSimpleProps, Record<string, any>, {}> {}
"
`;
exports[`fixtures (TypeScript) "anchor-props/input.svelte" 1`] = `
"import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { SvelteHTMLElements } from "svelte/elements";

type RestProps = SvelteHTMLElements["h1"];

export interface RestPropsProps extends RestProps {
export interface RestPropsSimpleProps extends RestProps {
[key: `data-${string}`]: any;
}

export default class RestProps extends SvelteComponentTyped<RestPropsProps, Record<string, any>, {}> {}
export default class RestPropsSimple extends SvelteComponentTyped<RestPropsSimpleProps, Record<string, any>, {}> {}
File renamed without changes.

0 comments on commit 3e38573

Please sign in to comment.