Skip to content

Commit

Permalink
Merge pull request #455 from preactjs/missing-plugin-types
Browse files Browse the repository at this point in the history
(sw/dir) - add missing import prefix types
  • Loading branch information
marvinhagemeister authored Mar 21, 2021
2 parents 5ae39be + 5ae4e4d commit 207cfa2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/rare-rules-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@wmr-plugins/directory-import': patch
'@wmr-plugins/service-worker': patch
---

Add missing import prefix types
5 changes: 5 additions & 0 deletions packages/directory-plugin/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ import { Plugin } from 'rollup';
import { Options } from 'wmr';

export default function directoryPlugin(options?: Options): Plugin;

declare module 'dir:*' {
const files: string[];
export default files;
}
5 changes: 5 additions & 0 deletions packages/sw-plugin/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ import { Plugin } from 'rollup';
import { Options } from 'wmr';

export default function swPlugin(options?: Options): Plugin;

declare module 'sw:*' {
const url: string;
export default url;
}

0 comments on commit 207cfa2

Please sign in to comment.