Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Options.ToOptions

import type { Options } from "https://raw.githubusercontent.com/i-xi-dev/color.es/5.2.10/src/options.ts"; 

const { ToOptions } = Options;

The object with the following optional fields.

  • discardAlpha: Whether to discard a (alpha). The default is false.
  • omitAlphaIfOpaque: Whether to omit a (alpha) if alpha equals 1. The default is false.
type ToOptions = {
discardAlpha?: boolean;
omitAlphaIfOpaque?: boolean;
}
;

§Type

§
{
discardAlpha?: boolean;
omitAlphaIfOpaque?: boolean;
}
[src]