syndicate-js/packages/core/src/runtime/api.ts

9 lines
404 B
TypeScript
Raw Normal View History

2021-12-01 16:24:29 +00:00
/// SPDX-License-Identifier: GPL-3.0-or-later
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
2021-01-18 22:11:53 +00:00
// Keep these definitions in sync with internals.ts from the compiler package
2021-12-01 16:24:29 +00:00
2021-01-16 16:46:18 +00:00
export type NonEmptySkeleton<Shape> = { shape: Shape, members: Skeleton<Shape>[] };
export type Skeleton<Shape> = null | NonEmptySkeleton<Shape>;
export type Path = Array<number>;