@prismicio/types-internal
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -9,2 +9,11 @@ import * as t from "io-ts"; | ||
}>]>>; | ||
export declare type Meta = t.TypeOf<typeof Meta>; | ||
export declare const Span: t.ExactC<t.IntersectionC<[t.PartialC<{ | ||
data: t.UnknownC; | ||
}>, t.TypeC<{ | ||
start: t.NumberC; | ||
end: t.NumberC; | ||
type: t.StringC; | ||
}>]>>; | ||
export declare type Span = Meta; | ||
export declare const ValidatedMetas: t.Type<({ | ||
@@ -11,0 +20,0 @@ data?: unknown; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Block = exports.TextBlock = exports.checkEmbedBlock = exports.EmbedBlock = exports.EmbedBlockType = exports.checkImageBlock = exports.ImageBlock = exports.ImageBlockType = exports.ValidatedMetas = exports.Meta = void 0; | ||
exports.Block = exports.TextBlock = exports.checkEmbedBlock = exports.EmbedBlock = exports.EmbedBlockType = exports.checkImageBlock = exports.ImageBlock = exports.ImageBlockType = exports.ValidatedMetas = exports.Span = exports.Meta = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -22,2 +22,4 @@ const E = (0, tslib_1.__importStar)(require("fp-ts/lib/Either")); | ||
])); | ||
// export alias for code clarity | ||
exports.Span = exports.Meta; | ||
exports.ValidatedMetas = new t.Type("ValidatedMetas", (metas) => Array.isArray(metas) && metas.every(exports.Meta.is), (metas, c) => { | ||
@@ -24,0 +26,0 @@ if (Array.isArray(metas)) { |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -22,4 +22,7 @@ import * as E from "fp-ts/lib/Either" | ||
) | ||
export type Meta = t.TypeOf<typeof Meta> | ||
type Meta = t.TypeOf<typeof Meta> | ||
// export alias for code clarity | ||
export const Span = Meta | ||
export type Span = Meta | ||
@@ -26,0 +29,0 @@ export const ValidatedMetas = new t.Type<Meta[], Meta[], unknown>( |
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
837506
19357