Skip to content

Commit

Permalink
Update declaration merging instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jan 2, 2019
1 parent 56ed79c commit 1146c3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/serialization/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type _ModelToObject<T> =
* to add custom properties to the exported interfaces.
* For example, if your custom serializer adds a property to all [[Reflection]] objects:
* ```ts
* declare module 'typedoc' {
* declare module 'typedoc/dist/lib/serialization/schema' {
* export namespace JSONOutput {
* export interface AbstractReflection {
* myCustomProp: boolean
Expand All @@ -59,7 +59,7 @@ type _ModelToObject<T> =
* If a plugin defines a new Model type, [[ModelToObject]] will not pick up the serializer type.
* To fix this, use declaration merging to augment the [[Serializer]] class.
* ```ts
* declare module 'typedoc' {
* declare module 'typedoc/dist/lib/serialization/serializer' {
* export interface Serializer {
* toObject(value: CustomModel, obj?: Partial<CustomModel>): CustomOutput
* }
Expand Down

0 comments on commit 1146c3f

Please sign in to comment.