source: node_modules/@standard-schema/utils/dist/index.d.ts

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 712 bytes
Line 
1import { StandardSchemaV1 } from '@standard-schema/spec';
2
3/**
4 * Creates and returns the dot path of an issue if possible.
5 *
6 * @param issue The issue to get the dot path from.
7 *
8 * @returns The dot path or null.
9 */
10declare function getDotPath(issue: StandardSchemaV1.Issue): string | null;
11
12/**
13 * A schema error with useful information.
14 */
15declare class SchemaError extends Error {
16 /**
17 * The schema issues.
18 */
19 readonly issues: ReadonlyArray<StandardSchemaV1.Issue>;
20 /**
21 * Creates a schema error with useful information.
22 *
23 * @param issues The schema issues.
24 */
25 constructor(issues: ReadonlyArray<StandardSchemaV1.Issue>);
26}
27
28export { SchemaError, getDotPath };
Note: See TracBrowser for help on using the repository browser.