Skip to content

Commit 1146c3f

Browse files
committed
Update declaration merging instructions
See microsoft/TypeScript#18877
1 parent 56ed79c commit 1146c3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/serialization/schema.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type _ModelToObject<T> =
4747
* to add custom properties to the exported interfaces.
4848
* For example, if your custom serializer adds a property to all [[Reflection]] objects:
4949
* ```ts
50-
* declare module 'typedoc' {
50+
* declare module 'typedoc/dist/lib/serialization/schema' {
5151
* export namespace JSONOutput {
5252
* export interface AbstractReflection {
5353
* myCustomProp: boolean
@@ -59,7 +59,7 @@ type _ModelToObject<T> =
5959
* If a plugin defines a new Model type, [[ModelToObject]] will not pick up the serializer type.
6060
* To fix this, use declaration merging to augment the [[Serializer]] class.
6161
* ```ts
62-
* declare module 'typedoc' {
62+
* declare module 'typedoc/dist/lib/serialization/serializer' {
6363
* export interface Serializer {
6464
* toObject(value: CustomModel, obj?: Partial<CustomModel>): CustomOutput
6565
* }

0 commit comments

Comments
 (0)