fix(cli/spinner): export private type aliases used in public API (#4012)

fix(cli/spinner): export type aliases used in public API

Ref: https://github.com/denoland/deno_std/pull/3968
This commit is contained in:
Jesse Jackson 2023-12-21 15:50:26 -06:00 committed by GitHub
parent 76fd2aa102
commit fd3116778e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,8 @@ const DEFAULT_SPINNER = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧",
// This is a hack to allow us to use the same type for both the color name and an ANSI escape code.
// ref: https://github.com/microsoft/TypeScript/issues/29729#issuecomment-460346421
// deno-lint-ignore ban-types
type Ansi = string & {};
type Color =
export type Ansi = string & {};
export type Color =
| "black"
| "red"
| "green"