Skip to content

Commit 35dc002

Browse files
committed
Revert "Merge branch 'main' into release/0.x"
This reverts commit aac023c.
1 parent aac023c commit 35dc002

File tree

5 files changed

+282
-293
lines changed

5 files changed

+282
-293
lines changed

docs/cookbook.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ export default class Model extends BaseModel implements FormatsQueryParameters {
185185
this.appends.push(name);
186186
return this;
187187
}
188-
189-
public static append<T extends Model>(name: string): T {
190-
this.newQuery<T>().append(name);
188+
189+
public static append<T extends StaticToThis<Model>>(this: T, name: string): T['prototype'] {
190+
this.newQuery().append(name);
191191
}
192192

193193
public withoutAppend(name: string): this {

0 commit comments

Comments
 (0)