@react-native-windows/codegen 0.0.0-canary.48 → 0.0.0-canary.49
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/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
# Change Log - @react-native-windows/codegen
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 09 Feb 2023 06:15:13 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.0.0-canary.
|
|
7
|
+
## 0.0.0-canary.49
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Thu, 09 Feb 2023 06:15:13 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
- Bump @react-native-windows/fs to v0.0.0-canary.
|
|
15
|
-
- Bump @rnw-scripts/jest-unittest-config to v1.5.0
|
|
16
|
-
- Bump @rnw-scripts/just-task to v2.3.5
|
|
13
|
+
- Bump typescript version (30809111+acoates-ms@users.noreply.github.com)
|
|
14
|
+
- Bump @react-native-windows/fs to v0.0.0-canary.14
|
|
17
15
|
|
|
16
|
+
## 0.0.0-canary.48
|
|
17
|
+
|
|
18
|
+
Wed, 11 Jan 2023 06:15:29 GMT
|
|
19
|
+
|
|
20
|
+
### Changes
|
|
21
|
+
|
|
22
|
+
- integrate 12/2/22 (tatianakapos@microsoft.com)
|
|
23
|
+
- Bump @react-native-windows/fs to v0.0.0-canary.13
|
|
24
|
+
- Bump @rnw-scripts/jest-unittest-config to v1.5.0
|
|
25
|
+
- Bump @rnw-scripts/just-task to v2.3.5
|
|
26
|
+
|
|
18
27
|
## 0.0.0-canary.47
|
|
19
28
|
|
|
20
29
|
Wed, 21 Dec 2022 06:15:26 GMT
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @format
|
|
5
5
|
*/
|
|
6
6
|
import type { SchemaType } from 'react-native-tscodegen';
|
|
7
|
-
|
|
7
|
+
type FilesOutput = Map<string, string>;
|
|
8
8
|
export declare function createNM2Generator({ methodOnly, namespace, }: {
|
|
9
9
|
methodOnly: boolean;
|
|
10
10
|
namespace: string;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
import type { NativeModuleSchema, SchemaType } from 'react-native-tscodegen';
|
|
7
7
|
export declare function setOptionalTurboModule(schema: NativeModuleSchema, optional: boolean): void;
|
|
8
8
|
export declare function getOptionalTurboModule(schema: NativeModuleSchema): boolean;
|
|
9
|
-
|
|
9
|
+
type FilesOutput = Map<string, string>;
|
|
10
10
|
export declare function generateTypeScript(_libraryName: string, schema: SchemaType, _moduleSpecName: string): FilesOutput;
|
|
11
11
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { NamedShape, NativeModuleParamTypeAnnotation, Nullable } from 'react-native-tscodegen';
|
|
7
7
|
import { AliasMap } from './AliasManaging';
|
|
8
|
-
|
|
8
|
+
type NativeModuleParamShape = NamedShape<Nullable<NativeModuleParamTypeAnnotation>>;
|
|
9
9
|
export declare function translateSpecArgs(params: ReadonlyArray<NativeModuleParamShape>, aliases: AliasMap, baseAliasName: string): string[];
|
|
10
10
|
export declare function translateArgs(params: ReadonlyArray<NativeModuleParamShape>, aliases: AliasMap, baseAliasName: string): string[];
|
|
11
11
|
export {};
|
package/lib-commonjs/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ interface Config {
|
|
|
23
23
|
export declare function parseFile(filename: string): SchemaType;
|
|
24
24
|
export declare function combineSchemas(files: string[]): SchemaType;
|
|
25
25
|
export declare function generate({ libraryName, methodOnly, modulesCxx, moduleSpecName, modulesTypeScriptTypes, modulesWindows, namespace, outputDirectory, schema, }: Options, { /*generators,*/ test }: Config): boolean;
|
|
26
|
-
export
|
|
26
|
+
export type CodeGenOptions = {
|
|
27
27
|
file?: string;
|
|
28
28
|
files?: string[];
|
|
29
29
|
libraryName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-windows/codegen",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.49",
|
|
4
4
|
"description": "Generators for react-native-codegen targeting react-native-windows",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react-native-windows-codegen": "./bin.js"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-native-windows/fs": "^0.0.0-canary.
|
|
25
|
+
"@react-native-windows/fs": "^0.0.0-canary.14",
|
|
26
26
|
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
27
27
|
"@typescript-eslint/parser": "^5.30.5",
|
|
28
28
|
"chalk": "^4.1.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"jest": "^29.2.1",
|
|
46
46
|
"prettier": "^2.4.1",
|
|
47
47
|
"react-native-tscodegen": "0.72.0",
|
|
48
|
-
"typescript": "^4.
|
|
48
|
+
"typescript": "^4.9.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react-native": "*"
|