houdini-svelte 1.0.0-next.4 → 1.0.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,7 @@ import type { CollectedGraphQLDocument, Config } from 'houdini';
2
2
  export type PluginArtifactData = {
3
3
  isManualLoad?: boolean;
4
4
  };
5
- export declare function artifactData(config: Config, doc: CollectedGraphQLDocument): PluginArtifactData;
5
+ export declare function artifactData({ config, document, }: {
6
+ config: Config;
7
+ document: CollectedGraphQLDocument;
8
+ }): PluginArtifactData;
@@ -1,6 +1,9 @@
1
1
  import type { Config } from 'houdini';
2
2
  import { type Maybe, type Script } from 'houdini';
3
- export default function (config: Config, filepath: string, contents: string): Promise<string[]>;
3
+ export default function ({ config, content, }: {
4
+ config: Config;
5
+ content: string;
6
+ }): Promise<string[]>;
4
7
  export declare function parseSvelte(str: string): Promise<ParsedFile>;
5
8
  export type ParsedFile = Maybe<{
6
9
  script: Script;
@@ -1,8 +1,9 @@
1
- import type { PluginFactory } from 'houdini';
1
+ import type { PluginHooks } from 'houdini';
2
2
  import { type Config } from 'houdini';
3
3
  export declare let _config: Config;
4
- declare const HoudiniSveltePlugin: PluginFactory;
5
- export default HoudiniSveltePlugin;
4
+ export declare const pluginHooks: () => Promise<PluginHooks>;
5
+ declare const _default: import("houdini").PluginInit;
6
+ export default _default;
6
7
  declare module 'houdini' {
7
8
  interface HoudiniPluginConfig {
8
9
  'houdini-svelte': HoudiniSvelteConfig;