@lokalise/api-contracts 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,10 +46,10 @@ Here is how you can apply strict typing to the `metadata` property using TypeScr
|
|
|
46
46
|
```typescript
|
|
47
47
|
// file -> apiContracts.d.ts
|
|
48
48
|
// Import the existing module to ensure TypeScript recognizes the original definitions
|
|
49
|
-
import '@lokalise/api-contracts
|
|
49
|
+
import '@lokalise/api-contracts';
|
|
50
50
|
|
|
51
51
|
// Augment the module to extend the interface with specific properties
|
|
52
|
-
declare module '@lokalise/api-contracts
|
|
52
|
+
declare module '@lokalise/api-contracts' {
|
|
53
53
|
interface CommonRouteDefinitionMetadata {
|
|
54
54
|
myTestProp?: string[];
|
|
55
55
|
mySecondTestProp?: number;
|