diff --git a/deno.lock b/deno.lock index fad9a78..f1cacef 100644 --- a/deno.lock +++ b/deno.lock @@ -2,9 +2,14 @@ "version": "3", "packages": { "specifiers": { + "npm:@types/node": "npm:@types/node@18.16.19", "npm:chalk@5": "npm:chalk@5.3.0" }, "npm": { + "@types/node@18.16.19": { + "integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==", + "dependencies": {} + }, "chalk@5.3.0": { "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", "dependencies": {} diff --git a/types/procreate-swatches.d.ts b/types/procreate-swatches.d.ts index 7833eca..d2e5c81 100644 --- a/types/procreate-swatches.d.ts +++ b/types/procreate-swatches.d.ts @@ -1,9 +1,11 @@ +import type { Buffer } from "node:buffer"; + type ColorSpace = "rgb" | "hsl" | "hsv" | "hwb" | "xyz" | "lab" | "lch"; type Colors = [number[], ColorSpace][]; export function readSwatchesFile( data: string | Uint8Array | ArrayBuffer | Blob, - colorSpace?: ColorSpace + colorSpace?: ColorSpace, ): Promise<{ name: string; colors: Colors; @@ -21,11 +23,11 @@ type SwatchReturnType = { }; export function createSwatchesFile< - F extends keyof SwatchReturnType | undefined = undefined + F extends keyof SwatchReturnType | undefined = undefined, >( name: string, colors: Colors, - format?: F + format?: F, ): Promise; interface ProcreateSwatchesError extends Error {