fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type (#35150)

PR Close #35150
This commit is contained in:
Oleg Teterin
2020-02-05 01:34:18 +03:00
committed by Misko Hevery
parent f3f4195ec9
commit da85e733d7
14 changed files with 22 additions and 22 deletions

View File

@ -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) {}
}
```