node-schematron
Version:
A pure-JS Schematron implementation for Node, browsers and CLI
21 lines (20 loc) • 822 B
TypeScript
import { Node } from 'slimdom';
import { Result } from './Result';
import { FontoxpathOptions } from './types';
export declare class Assert {
id: string | null;
test: string;
message: Array<string | Object>;
isReport: boolean;
constructor(id: string | null, test: string, message: Array<string | Object>, isReport: boolean);
createMessageString(contextNode: Node, variables: Object, fontoxpathOptions: FontoxpathOptions, chunks: Array<string | any>): string;
validateNode(context: Node, variables: Object, fontoxpathOptions: FontoxpathOptions): Result | null;
static QUERY: string;
static fromJson(json: AssertJson): Assert;
}
export declare type AssertJson = {
id: string | null;
test: string;
message: Array<string | Object>;
isReport: boolean;
};