Skip to content

Commit

Permalink
chore: update target type
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 7, 2023
1 parent 85e01ad commit df6d1de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export type BannerOrFooter =
}
| ((ctx: { format: Format }) => { js?: string; css?: string } | undefined)

type Autocomplete<Keys extends string> = Keys | Omit<string, Keys>
export type BrowserTarget =
| 'chrome'
| 'deno'
Expand All @@ -57,6 +56,10 @@ export type BrowserTarget =
| 'opera'
| 'rhino'
| 'safari'
export type BrowserTargetWithVersion =
| `${BrowserTarget}${number}`
| `${BrowserTarget}${number}.${number}`
| `${BrowserTarget}${number}.${number}.${number}`
export type EsTarget =
| 'es3'
| 'es5'
Expand All @@ -70,7 +73,8 @@ export type EsTarget =
| 'es2021'
| 'es2022'
| 'esnext'
export type Target = Autocomplete<BrowserTarget | EsTarget>

export type Target = BrowserTarget | BrowserTargetWithVersion | EsTarget

/**
* The options available in tsup.config.ts
Expand Down

0 comments on commit df6d1de

Please sign in to comment.