Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1a committed Jul 31, 2023
1 parent 84ef75c commit af1c5fd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ module.exports = {
tabWidth: 2,
useTabs: false,
bracketSpacing: true,
trailingComma: "es5",
};
45 changes: 22 additions & 23 deletions packages/world/ts/library/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <namespace>_<system>_<function>.
*/
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 <namespace>_<system>_<function>.
*/
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<T extends SystemUserConfig, SystemName extends string>
extends OrDefaults<
Expand Down

0 comments on commit af1c5fd

Please sign in to comment.