2023-05-09 22:21:01 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
* @format
|
|
|
|
*/
|
|
|
|
|
|
|
|
import wrapAssembly from '../wrapAssembly';
|
|
|
|
import type {Yoga} from '../wrapAssembly';
|
|
|
|
|
|
|
|
export * from '../generated/YGEnums';
|
|
|
|
export type {
|
|
|
|
Config,
|
|
|
|
DirtiedFunction,
|
|
|
|
MeasureFunction,
|
|
|
|
Node,
|
|
|
|
Yoga,
|
|
|
|
} from '../wrapAssembly';
|
|
|
|
|
2023-07-12 15:43:10 -07:00
|
|
|
const loadAssembly = require('../../binaries/asmjs-async-node');
|
2023-05-09 22:21:01 -07:00
|
|
|
|
|
|
|
export async function loadYoga(): Promise<Yoga> {
|
|
|
|
return wrapAssembly(await loadAssembly());
|
|
|
|
}
|