Skip to content

Commit be9af0d

Browse files
committed
diff
1 parent 00c1698 commit be9af0d

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

README.md

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,64 @@ Total time: 1.04s
3838
✨ Done in 1.28s.
3939
```
4040

41-
Notice check time and number of instantiations.
41+
Notice check time and number of instantiations.
42+
43+
44+
45+
Apply this diff:
46+
47+
```diff
48+
diff --git a/types/mongoose.d.ts b/types/mongoose.d.ts
49+
index 9e0ad99..2fab5ff 100644
50+
--- a/types/mongoose.d.ts
51+
+++ b/types/mongoose.d.ts
52+
@@ -1232,7 +1232,7 @@ declare module 'mongoose' {
53+
type PostMiddlewareFunction<ThisType, ResType = any> = (this: ThisType, res: ResType, next: (err?: CallbackError) => void) => void | Promise<void>;
54+
type ErrorHandlingMiddlewareFunction<ThisType, ResType = any> = (this: ThisType, err: NativeError, res: ResType, next: (err?: CallbackError) => void) => void;
55+
56+
- class Schema<DocType = Document, M extends Model<DocType, any, any> = Model<any, any, any>, SchemaDefinitionType = undefined, TInstanceMethods = ExtractMethods<M>> extends events.EventEmitter {
57+
+ class Schema<DocType = Document, M = Model<any, any, any>, SchemaDefinitionType = undefined, TInstanceMethods = any> extends events.EventEmitter {
58+
/**
59+
* Create a new schema
60+
*/
61+
```
62+
63+
Results:
64+
65+
```
66+
Files: 7
67+
Lines of Library: 24662
68+
Lines of Definitions: 3022
69+
Lines of TypeScript: 18
70+
Lines of JavaScript: 0
71+
Lines of JSON: 0
72+
Lines of Other: 0
73+
Nodes of Library: 110877
74+
Nodes of Definitions: 14731
75+
Nodes of TypeScript: 63
76+
Nodes of JavaScript: 0
77+
Nodes of JSON: 0
78+
Nodes of Other: 0
79+
Identifiers: 45582
80+
Symbols: 27736
81+
Types: 710
82+
Instantiations: 818
83+
Memory used: 59482K
84+
Assignability cache size: 157
85+
Identity cache size: 0
86+
Subtype cache size: 0
87+
Strict subtype cache size: 0
88+
I/O Read time: 0.00s
89+
Parse time: 0.21s
90+
ResolveModule time: 0.00s
91+
Program time: 0.22s
92+
Bind time: 0.11s
93+
Check time: 0.03s
94+
transformTime time: 0.00s
95+
commentTime time: 0.00s
96+
I/O Write time: 0.00s
97+
printTime time: 0.01s
98+
Emit time: 0.01s
99+
Total time: 0.37s
100+
✨ Done in 0.72s.
101+
```

p.diff

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/types/mongoose.d.ts b/types/mongoose.d.ts
2+
index 9e0ad99..2fab5ff 100644
3+
--- a/types/mongoose.d.ts
4+
+++ b/types/mongoose.d.ts
5+
@@ -1232,7 +1232,7 @@ declare module 'mongoose' {
6+
type PostMiddlewareFunction<ThisType, ResType = any> = (this: ThisType, res: ResType, next: (err?: CallbackError) => void) => void | Promise<void>;
7+
type ErrorHandlingMiddlewareFunction<ThisType, ResType = any> = (this: ThisType, err: NativeError, res: ResType, next: (err?: CallbackError) => void) => void;
8+
9+
- class Schema<DocType = Document, M extends Model<DocType, any, any> = Model<any, any, any>, SchemaDefinitionType = undefined, TInstanceMethods = ExtractMethods<M>> extends events.EventEmitter {
10+
+ class Schema<DocType = Document, M = Model<any, any, any>, SchemaDefinitionType = undefined, TInstanceMethods = any> extends events.EventEmitter {
11+
/**
12+
* Create a new schema
13+
*/

0 commit comments

Comments
 (0)