Skip to content

Commit

Permalink
Tweaking RouterConfig type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkalachev committed Nov 30, 2024
1 parent c88f277 commit b8d288c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/@weresk/router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @weresk/router

## 0.0.10

### Patch Changes

- Tweaking RouterConfig type

## 0.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@weresk/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@weresk/router",
"version": "0.0.9",
"version": "0.0.10",
"private": false,
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/@weresk/router/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type RouterMode = "parent" | "folder";

export interface RouterConfig<DocumentType extends ReferenceDocument = ReferenceDocument> {
mode: RouterMode;
schemas: string[];
schemas: Exclude<DocumentType["_type"], "reference">[];
routes: Record<Exclude<DocumentType["_type"], "reference">, string>;
contacts?: ContactType[];
parentDepth?: number;
Expand Down

0 comments on commit b8d288c

Please sign in to comment.