diff --git a/.prettierrc.js b/.prettierrc.js index b6602b4d50..c54967bab3 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -7,4 +7,5 @@ module.exports = { tabWidth: 2, useTabs: false, bracketSpacing: true, + trailingComma: "es5", }; diff --git a/packages/world/ts/library/config/types.ts b/packages/world/ts/library/config/types.ts index 5cb70b6910..3a590229f0 100644 --- a/packages/world/ts/library/config/types.ts +++ b/packages/world/ts/library/config/types.ts @@ -5,30 +5,29 @@ import { zWorldConfig } from "./worldConfig"; import { SYSTEM_DEFAULTS } from "./defaults"; // zod doesn't preserve doc comments -export type SystemUserConfig = +export type SystemUserConfig = { + /** The full resource selector consists of namespace and name */ + name?: string; + /** + * Register function selectors for the system in the World. + * Defaults to true. + * Note: + * - For root systems all World function selectors will correspond to the system's function selectors. + * - For non-root systems, the World function selectors will be __. + */ + registerFunctionSelectors?: boolean; +} & ( | { - /** The full resource selector consists of namespace and name */ - name?: string; - /** - * Register function selectors for the system in the World. - * Defaults to true. - * Note: - * - For root systems all World function selectors will correspond to the system's function selectors. - * - For non-root systems, the World function selectors will be __. - */ - registerFunctionSelectors?: boolean; - } & ( - | { - /** If openAccess is true, any address can call the system */ - openAccess?: true; - } - | { - /** If openAccess is false, only the addresses or systems in `access` can call the system */ - openAccess: false; - /** An array of addresses or system names that can access the system */ - accessList: string[]; - } - ); + /** If openAccess is true, any address can call the system */ + openAccess?: true; + } + | { + /** If openAccess is false, only the addresses or systems in `access` can call the system */ + openAccess: false; + /** An array of addresses or system names that can access the system */ + accessList: string[]; + } +); export interface ExpandSystemConfig extends OrDefaults<