fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150)
PR Close #35150
This commit is contained in:

committed by
Misko Hevery

parent
f3f4195ec9
commit
da85e733d7
@ -320,7 +320,7 @@ Use `@SkipSelf()` with `@Optional()` to prevent an error if the value is `null`.
|
||||
|
||||
``` ts
|
||||
class Person {
|
||||
constructor(@Optional() @SkipSelf() parent: Person) {}
|
||||
constructor(@Optional() @SkipSelf() parent?: Person) {}
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user