|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
712 bytes
|
| Line | |
|---|
| 1 | import { 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 | */
|
|---|
| 10 | declare function getDotPath(issue: StandardSchemaV1.Issue): string | null;
|
|---|
| 11 |
|
|---|
| 12 | /**
|
|---|
| 13 | * A schema error with useful information.
|
|---|
| 14 | */
|
|---|
| 15 | declare 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 |
|
|---|
| 28 | export { SchemaError, getDotPath };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.