mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
add server to monorepo.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import * as R from 'ramda';
|
||||
import { FinancialSheetStructure } from './FinancialSheetStructure';
|
||||
|
||||
export const FinancialSchema = (Base) =>
|
||||
class extends R.compose(FinancialSheetStructure)(Base) {
|
||||
/**
|
||||
*
|
||||
* @returns
|
||||
*/
|
||||
getSchema() {
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string|number} id
|
||||
* @returns
|
||||
*/
|
||||
getSchemaNodeById = (id: string | number) => {
|
||||
const schema = this.getSchema();
|
||||
|
||||
return this.findNodeDeep(schema, (node) => node.id === id);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user