Source code

Revision control

Copy as Markdown

Other Tools

export type SchemaType = any;
export type SchemaNames = {
blockName?: string;
optional?: boolean;
};
export interface SchemaCompatible {
/**
* Converts parsed ASN.1 object into current class
* @param schema
*/
fromSchema(schema: SchemaType): void;
/**
* Convert current object to asn1js object and set correct values
* @returns asn1js object
*/
toSchema(): SchemaType;
toJSON(): any;
}
export interface SchemaConstructor {
schema?: SchemaType;
}
/**
* Parameters for schema generation
*/
export interface SchemaParameters<N extends Record<string, any> = { /**/ }> {
names?: SchemaNames & N;
}