Skip to content

Commit

Permalink
types: Restricts preact.config.js's env types to a more idiomatic…
Browse files Browse the repository at this point in the history
… subset (#1735)

* refactor: Begin to restrict config env types in prep for v4

* docs: Adding changeset
  • Loading branch information
rschristian committed Nov 18, 2022
1 parent d9b442f commit 099876b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-years-prove.md
@@ -0,0 +1,5 @@
---
'preact-cli': patch
---

Restricts `preact.config.js`'s `env` types into a more idiomatic subset
11 changes: 2 additions & 9 deletions packages/cli/types.d.ts
Expand Up @@ -57,16 +57,9 @@ export type Config = {
* to check for in your config
*/
export type Env = {
src: string;
dest: string;
esm: boolean;
sw: boolean;
dev: boolean;
production: boolean;
isProd: boolean;
ssr: boolean;
prerender: boolean;
[key: string]: any;
isWatch: boolean;
isServer: boolean;
};

export type Helpers = {
Expand Down

0 comments on commit 099876b

Please sign in to comment.