drimion 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import { BaseRepository
|
|
1
|
+
import type { BaseRepository } from "@pokepulse/kernel";
|
|
2
2
|
// import { {{className}} } from "./path-to-your-{{lowerName}}";
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
async findById(id: ID): Promise<IResult<{{className}}, string>> {
|
|
6
|
-
// implement fetch logic
|
|
7
|
-
throw new Error("Method not implemented")
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
async save(entity: {{className}}): Promise<IResult<void, string>> {
|
|
11
|
-
// implement persistence
|
|
12
|
-
throw new Error("Method not implemented")
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
async delete(id: ID): Promise<IResult<void, string>> {
|
|
16
|
-
// implement delete
|
|
17
|
-
throw new Error("Method not implemented")
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
async exists(id: ID): Promise<boolean> {
|
|
21
|
-
// implement existence check
|
|
22
|
-
throw new Error("Method not implemented")
|
|
23
|
-
}
|
|
24
|
-
}
|
|
4
|
+
export interface I{{className}}Repository extends BaseRepository<{{className}}> {}
|