13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
import { demoTree } from '.';
|
|
import type { BrigadierTreeCommand } from './types';
|
|
|
|
function commandArray(array: Array<BrigadierTreeCommand>) {
|
|
const out: Array<string> = [];
|
|
array.forEach((obj) => out.push(obj.command));
|
|
return out;
|
|
}
|
|
|
|
export const treeUtils = {
|
|
commandArray,
|
|
};
|