-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Integrate module augmentation in the doc and starters (#104)
* feat: Integrate module augmentation in the doc and starters * chore: update action * test: fix suite * test: fix config * docs: Improve augmentation
- Loading branch information
Showing
10 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
strategy: | ||
matrix: | ||
node-verion: [16.x] | ||
medusajs-version: [1.2.1, 1.3.0] | ||
medusajs-version: [1.2.x, 1.3.x] | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -43,7 +43,7 @@ jobs: | |
strategy: | ||
matrix: | ||
node-verion: [16.x] | ||
medusajs-version: [1.2.1, 1.3.0] | ||
medusajs-version: [1.2.x, 1.3.x] | ||
services: | ||
postgres: | ||
image: postgres | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
global.afterEach(async () => { | ||
await new Promise(resolve => setImmediate(resolve)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { User as ExtendedUser } from '@modules/user/user.entity'; | ||
import { default as ExtendedUserRepository } from '@modules/user/user.repository'; | ||
|
||
declare module '@medusajs/medusa/dist/models/user' { | ||
export declare class User extends ExtendedUser {} | ||
} | ||
|
||
declare module '@medusajs/medusa' { | ||
export declare class UserRepository extends ExtendedUserRepository {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { User as MedusaUser } from '@medusajs/medusa/dist/models/user'; | ||
import { default as ExtendedUserRepository } from '@modules/user/user.repository'; | ||
|
||
declare module '@medusajs/medusa/dist/models/user' { | ||
export declare class User extends MedusaUser { | ||
store_id: string; | ||
} | ||
} | ||
|
||
declare module '@medusajs/medusa' { | ||
export declare class UserRepository extends ExtendedUserRepository {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters