Minor Changes
-
#5042
5693d076
Thanks @dario-piotrowicz! - feat: add new--env-interface
towrangler types
Allow users to specify the name of the interface that they want
wrangler types
to generate for theenv
parameter, via the new CLI flag--env-interface
Example:
wrangler types --env-interface CloudflareEnv
generates
interface CloudflareEnv {}
instead of
interface Env {}
-
#5042
5693d076
Thanks @dario-piotrowicz! - feat: add newpath
positional argument towrangler types
Allow users to specify the path to the typings (.d.ts) file they want
wrangler types
to generateExample:
wrangler types ./my-env.d.ts
generates a
my-env.d.ts
file in the current directory
instead of creating aworker-configuration.d.ts
file
Patch Changes
-
#5042
5693d076
Thanks @dario-piotrowicz! - feat: include command run in thewrangler types
commentIn the comment added to the
.d.ts
file generated bywrangler types
include the command run to generated the file -
#4303
1c460287
Thanks @richardscarrott! - fix: allow Pages Functions to import built-in node:* modules, even when not bundling with wrangler -
#4957
50f93bd2
Thanks @garrettgu10! - fix: don't strip.py
extensions from Python modules -
#5042
5693d076
Thanks @dario-piotrowicz! - fix: makewrangler types
honor top level config argumentThe
wrangler types
command currently ignores the-c|--config
argument
(although it is still getting shown in the command's help message). Make
sure that the command honors the flag.
Also, if no config file is detected
present a warning to the user -
#5042
5693d076
Thanks @dario-piotrowicz! - fix: make thewrangler types
command pick up local secret keys from.dev.vars
Make sure that the
wrangler types
command correctly picks up
secret keys defined in.dev.vars
and includes them in the generated
file (marking them as genericstring
types of course) -
Updated dependencies [
b03db864
]:- miniflare@3.20240208.0