feat(core): improve in-memory validation, FatturaPA detection coverage, and published type compatibility
This commit is contained in:
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
import * as saxonJSRuntime from 'saxon-js';
|
||||
|
||||
export interface ISaxonJSCompileOptions {
|
||||
stylesheetText: string;
|
||||
warnings?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface ISaxonJSTransformOptions {
|
||||
stylesheetInternal?: unknown;
|
||||
sourceText: string;
|
||||
destination?: string;
|
||||
stylesheetParams?: Record<string, unknown>;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface ISaxonJSTransformResult {
|
||||
principalResult: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface ISaxonJSModule {
|
||||
compile(options: ISaxonJSCompileOptions): Promise<unknown>;
|
||||
transform(options: ISaxonJSTransformOptions): Promise<ISaxonJSTransformResult>;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export const SaxonJS: ISaxonJSModule = saxonJSRuntime as unknown as ISaxonJSModule;
|
||||
Reference in New Issue
Block a user