Skip to content

Commit 653df1f

Browse files
committed
moved md files
1 parent ef9a0ae commit 653df1f

File tree

8 files changed

+11
-5
lines changed

8 files changed

+11
-5
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/4_extras.md renamed to docs/markdown/4_extras.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ import Select from '@src/components/select';
127127
...
128128
```
129129
130-
### Fixing Vendor Type Issues
131-
> Strategies to fix various issues coming from broken vendor type declaration files (*.d.ts)
130+
### Vendor Types Augmentation
131+
> Strategies to fix issues coming from broken "vendor type declarations" files (*.d.ts)
132132
133-
- Augumenting library internal type declarations - using relative import resolution
133+
- Augmenting library internal type declarations - using relative import resolution
134134
```ts
135135
// added missing autoFocus Prop on Input component in "[email protected]" npm package
136136
declare module '../node_modules/antd/lib/input/Input' {
@@ -140,7 +140,7 @@ declare module '../node_modules/antd/lib/input/Input' {
140140
}
141141
```
142142
143-
- Augumenting library public type declarations - using node module import resolution
143+
- Augmenting library public type declarations - using node module import resolution
144144
```ts
145145
// fixed broken public type declaration in "[email protected]" npm package
146146
import { Operator } from 'rxjs/Operator';
@@ -152,3 +152,9 @@ declare module 'rxjs/Subject' {
152152
}
153153
}
154154
```
155+
156+
- When missing declarations for some vendor modules you can fallback to any type using [Shorthand Ambient Modules](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Modules.md#shorthand-ambient-modules)
157+
158+
::example='../../playground/src/types/modules.d.ts'::
159+
160+
> More advanced tips for working with vendor modules declarations can be found here in [Official TypeScript Docs](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/Modules.md#working-with-other-javascript-libraries)
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/_toc.md renamed to docs/markdown/_toc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
- [tsconfig.json](#tsconfigjson)
2020
- [tslint.json](#tslintjson)
2121
- [Default and Named Module Exports](#default-and-named-module-exports)
22-
- [Fixing Vendor Type Issues](#fixing-vendor-type-issues)
22+
- [Vendor Types Augmentation](#vendor-types-augmentation)
2323
- [FAQ](#faq)
2424
- [Project Examples](#project-examples)

0 commit comments

Comments
 (0)