@lottiefiles/relottie-stringify
Version:
relottie plugin to add support for serializing LAST
20 lines (16 loc) • 515 B
TypeScript
import { NodeValue } from '@lottiefiles/last';
/**
* Copyright 2023 Design Barn Inc.
*/
declare type JSONValue = string | number | boolean | null | JSONObject | JSONArray;
interface JSONObject {
[x: string]: JSONValue;
}
interface JSONArray extends Array<JSONValue> {
}
/**
* Evaluates a Lottie AST node into a JavaScript value.
* @returns The JavaScript value for the node.
*/
declare function evaluate(node: NodeValue): JSONValue;
export { type JSONArray, type JSONObject, type JSONValue, evaluate };