Skip to content

Commit

Permalink
Merge pull request #2 from DuncanMcPherson/autoMocker-init
Browse files Browse the repository at this point in the history
added automocker
  • Loading branch information
DuncanMcPherson authored Dec 23, 2023
2 parents 8f772c7 + 426661c commit 2d14304
Show file tree
Hide file tree
Showing 4 changed files with 464 additions and 7 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"module": "index.mjs",
"types": "index.d.ts",
"type": "module",
"files": [
"/dist/*"
],
Expand Down
7 changes: 7 additions & 0 deletions src/@types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Observable } from "rxjs";
export type Accessor = 'get' | 'set';
export type Constructor<T> = new(...args: any[]) => T;

export type ObservablePropertyNames<T, O> = {
[K in keyof T]: T[K] extends Observable<O> ? K : never;
}[keyof T];
Loading

0 comments on commit 2d14304

Please sign in to comment.