UNPKG

@jargon/platform-sdk-core

Version:

Core components of the Jargon Platform SDK for node.js

21 lines (20 loc) 755 B
export declare type ReferentType = 'ResponseComponent' | 'String' | 'StringVariant'; export interface BaseReference { type: ReferentType; resource: string; } export interface StringReference extends BaseReference { type: 'String'; } export interface StringVariantReference extends BaseReference { type: 'StringVariant'; variant: string; } export interface ResponseComponentReference extends BaseReference { type: 'ResponseComponent'; variant: string; component: string; } export declare type CrossReference = ResponseComponentReference | StringReference | StringVariantReference; export declare function parseCrossReference(cr: string): CrossReference; export declare function locateCrossReferences(msg: string): string[];