Skip to content

feat(NODE-3875): support recursive schema types #3433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 13, 2022
Prev Previous commit
Next Next commit
rename uuid
  • Loading branch information
nbbeeken committed Oct 11, 2022
commit f3284f48cc069689d715572a703a5997d290c492
12 changes: 6 additions & 6 deletions test/types/community/slow-model.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { UUID as MUUID } from 'bson';
import type { UUID } from 'bson';

import type { Collection, Db } from '../../../src';

Expand Down Expand Up @@ -83,7 +83,7 @@ export interface AnotherSpecificModel {
}

export interface CircularModel {
_id: MUUID;
_id: UUID;
data: SpecificModel;
}

Expand Down Expand Up @@ -269,7 +269,7 @@ export interface ExtraType11 {
}

export interface ExtraType12 {
_id?: MUUID;
_id?: UUID;
prop42: ExtraType13[];
}

Expand All @@ -294,7 +294,7 @@ export interface ExtraType6 {
}

export interface SlowModel extends SlowModelBase {
_id: MUUID;
_id: UUID;
}

export interface SpecialType extends SlowModel {
Expand Down Expand Up @@ -351,7 +351,7 @@ export interface Key19IType2 extends IType2 {

export type ExtraType19 = ExtraType15[] | ExtraType20;
export interface ExtraType7<T extends ExtraType19 = ExtraType19> {
id: MUUID;
id: UUID;
prop66?: string;
prop67: T;
prop68?: ExtraType21;
Expand Down Expand Up @@ -379,7 +379,7 @@ export interface ExtraType21 {
}

export interface ExtraType8 {
id: MUUID;
id: UUID;
prop81: string;
prop82: ExtraType15[];
prop83: ExtraType15;
Expand Down