mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
14 lines
No EOL
253 B
TypeScript
14 lines
No EOL
253 B
TypeScript
export interface ConstraintAnnotation<T> {
|
|
|
|
save(): T;
|
|
|
|
load(data: T);
|
|
|
|
isConstraintAnnotation: boolean;
|
|
|
|
}
|
|
|
|
|
|
export function isConstraintAnnotation(obj: any): obj is ConstraintAnnotation<any> {
|
|
return obj&&obj.isConstraintAnnotation === true;
|
|
} |