Add TypeScript declarations
This commit is contained in:
@@ -4,18 +4,13 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
|
||||
const wrapLib = require('./entry');
|
||||
const wrapAsm = require('./wrapAsm');
|
||||
const loadYoga = require('./wasm-async');
|
||||
|
||||
module.exports = {
|
||||
load: () => {
|
||||
return loadYoga().then(wrapLib);
|
||||
load: () => loadYoga().then(wrapAsm),
|
||||
...require('./YGEnums'),
|
||||
}
|
||||
}
|
||||
|
||||
export type * from './YGEnums.js';
|
||||
export type * from './entry';
|
||||
|
Reference in New Issue
Block a user