@prismicio/types-internal
Advanced tools
Comparing version 2.7.0-alpha.6 to 2.7.0-alpha.7
@@ -54,3 +54,4 @@ "use strict"; | ||
exports.FileLinkType = "FileLink"; | ||
const FileLinkKind = new t.Type("FileLinkKind", (input) => input === "file" || input === "all", (input, context) => input === "file" || input === "all" | ||
const isFileLinkKind = (input) => input === "file" || input === "image/jpeg" || input === "all"; | ||
const FileLinkKind = new t.Type("FileLinkKind", (input) => isFileLinkKind(input), (input, context) => isFileLinkKind(input) | ||
? t.success("file") | ||
@@ -57,0 +58,0 @@ : t.failure(input, context), () => "file"); |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "2.7.0-alpha.6", | ||
"version": "2.7.0-alpha.7", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -73,7 +73,10 @@ import { either } from "fp-ts" | ||
const isFileLinkKind = (input: unknown) => | ||
input === "file" || input === "image/jpeg" || input === "all" | ||
const FileLinkKind = new t.Type<"file">( | ||
"FileLinkKind", | ||
(input): input is "file" => input === "file" || input === "all", | ||
(input): input is "file" => isFileLinkKind(input), | ||
(input, context) => | ||
input === "file" || input === "all" | ||
isFileLinkKind(input) | ||
? t.success("file" as const) | ||
@@ -80,0 +83,0 @@ : t.failure(input, context), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3234647
77778