@ucanto/validator
Advanced tools
Comparing version 3.0.2 to 3.0.4
@@ -1,2 +0,2 @@ | ||
export function uri(): URISchema<Options<`${string}:`>>; | ||
export function uri(): Schema.Schema<API.URI, unknown>; | ||
export function read(input: unknown): Schema.ReadResult<API.URI<`${string}:`>, API.Failure>; | ||
@@ -8,22 +8,4 @@ export function match<P extends `${string}:`, O extends Options<P>>(options: O): Schema.Schema<API.URI<O["protocol"]>, unknown>; | ||
}; | ||
/** | ||
* @template {API.Protocol} [P=API.Protocol] | ||
* @typedef {{protocol: P}} Options | ||
*/ | ||
/** | ||
* @template {Options} O | ||
* @extends {Schema.API<API.URI<O['protocol']>, unknown, Partial<O>>} | ||
*/ | ||
declare class URISchema<O extends Options<`${string}:`>> extends Schema.API<API.URI<O["protocol"]>, unknown, Partial<O>> { | ||
constructor(settings: Partial<O>); | ||
/** | ||
* @param {unknown} input | ||
* @param {Partial<O>} options | ||
* @returns {Schema.ReadResult<API.URI<O['protocol']>>} | ||
*/ | ||
readWith(input: unknown, { protocol }?: Partial<O>): Schema.ReadResult<API.URI<O['protocol']>>; | ||
} | ||
import * as Schema from "./schema.js"; | ||
import * as API from "@ucanto/interface"; | ||
import * as Schema from "./schema.js"; | ||
export {}; | ||
//# sourceMappingURL=uri.d.ts.map |
{ | ||
"name": "@ucanto/validator", | ||
"description": "UCAN RPC validators", | ||
"version": "3.0.2", | ||
"version": "3.0.4", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "UCAN", |
@@ -41,2 +41,5 @@ import * as API from '@ucanto/interface' | ||
/** | ||
* @returns {Schema.Schema<API.URI, unknown>} | ||
*/ | ||
export const uri = () => schema | ||
@@ -43,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
112478
3442