@xyd-js/sources 0.1.1-xyd.2 → 0.1.1-xyd.44
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 +350 -0
- package/ISSUES.md +10 -0
- package/TODO.md +5 -2
- package/__fixtures__/-1.typescript/package.json +5 -0
- package/__fixtures__/-1.typescript/src/index.ts +0 -0
- package/__fixtures__/-1.typescript/src/settings.ts +592 -0
- package/__fixtures__/-1.typescript/tsconfig.json +8 -0
- package/__fixtures__/-2.react.basic/1.flat-interface.output.json +90 -0
- package/__fixtures__/-2.react.basic/2.file-connect-interface.output.json +60 -0
- package/__fixtures__/-2.react.basic/2a.file-connect-interface-advanced.output.json +92 -0
- package/__fixtures__/-2.react.basic/3.props-as-variants.output.json +166 -0
- package/__fixtures__/-2.react.basic/4.outside-interface.output.json +60 -0
- package/__fixtures__/-2.react.basic/5.inline-props.output.json +60 -0
- package/__fixtures__/-2.react.basic/5.outside-inline-props.output.json +60 -0
- package/__fixtures__/-2.react.basic/5a.inline-props+outside.output.json +60 -0
- package/__fixtures__/-2.react.basic/5b.inline-props+interfaces.output.json +92 -0
- package/__fixtures__/-2.react.basic/package.json +4 -0
- package/__fixtures__/-2.react.basic/src/1.flat-interface.tsx +41 -0
- package/__fixtures__/-2.react.basic/src/2.file-connect-interface.tsx +28 -0
- package/__fixtures__/-2.react.basic/src/2a.file-connect-interace+advanced.tsx +54 -0
- package/__fixtures__/-2.react.basic/src/3.props-as-variants.tsx +67 -0
- package/__fixtures__/-2.react.basic/src/4.outside-interface.tsx +13 -0
- package/__fixtures__/-2.react.basic/src/4.outside-interface2.ts +15 -0
- package/__fixtures__/-2.react.basic/src/5.inline-props.tsx +19 -0
- package/__fixtures__/-2.react.basic/src/5a.inline-props+outside.tsx +19 -0
- package/__fixtures__/-2.react.basic/src/5b.inline-props+interfaces.tsx +62 -0
- package/__fixtures__/-2.react.basic/src/index.ts +0 -0
- package/__fixtures__/-2.react.basic/tsconfig.json +8 -0
- package/__tests__/sourcesToUniform.test.ts +155 -0
- package/__tests__/testResolvePropertySymbol.ts +838 -0
- package/__tests__/types.ts +12 -0
- package/__tests__/utils.ts +108 -0
- package/dist/index.cjs +0 -645
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -82
- package/dist/index.d.ts +1 -82
- package/dist/index.js +0 -611
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +236 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.cts +6 -0
- package/dist/react.d.ts +6 -0
- package/dist/react.js +211 -0
- package/dist/react.js.map +1 -0
- package/dist/ts.cjs +1794 -0
- package/dist/ts.cjs.map +1 -0
- package/dist/ts.d.cts +14 -0
- package/dist/ts.d.ts +14 -0
- package/dist/ts.js +1760 -0
- package/dist/ts.js.map +1 -0
- package/package.json +22 -4
- package/packages/react/index.ts +1 -0
- package/packages/react/uniformToReactUniform.ts +274 -0
- package/{src → packages/ts}/SignatureText.ts +26 -7
- package/packages/ts/TypeDocTransformer.ts +1519 -0
- package/packages/ts/__fixtures__/packages2/package-a/package.json +4 -0
- package/packages/ts/__fixtures__/packages2/package-a/src/index.ts +496 -0
- package/packages/ts/__fixtures__/packages2/package-a/tsconfig.json +6 -0
- package/packages/ts/__fixtures__/packages3/package-a/package.json +4 -0
- package/packages/ts/__fixtures__/packages3/package-a/src/index.ts +488 -0
- package/packages/ts/__fixtures__/packages3/package-a/tsconfig.json +6 -0
- package/packages/ts/__fixtures__/packages3/project.json +171 -0
- package/packages/ts/__fixtures__/react/react-a/package.json +5 -0
- package/packages/ts/__fixtures__/react/react-a/src/TestAbc.tsx +90 -0
- package/packages/ts/__fixtures__/react/react-a/src/TestBasic.tsx +27 -0
- package/packages/ts/__fixtures__/react/react-a/src/TestNamedParameters.tsx +27 -0
- package/packages/ts/__fixtures__/react/react-a/src/TestNamedParameters2.tsx +26 -0
- package/packages/ts/__fixtures__/react/react-a/src/TestUnion.tsx +32 -0
- package/packages/ts/__fixtures__/react/react-a/src/index.ts +1 -0
- package/packages/ts/__fixtures__/react/react-a/tsconfig.json +8 -0
- package/packages/ts/__fixtures__/references-output-project.json +344 -0
- package/packages/ts/__fixtures__/references-output-react.json +68 -0
- package/packages/ts/__fixtures__/references-output.json +129 -0
- package/packages/ts/__tests__/sourcesToUniform.test.ts +95 -0
- package/packages/ts/context.ts +0 -0
- package/packages/ts/converterts/ts-class.ts +0 -0
- package/packages/ts/converterts/ts-enum.ts +0 -0
- package/packages/ts/converterts/ts-function.ts +0 -0
- package/packages/ts/converterts/ts-interface.ts +0 -0
- package/packages/ts/converterts/ts-type.ts +0 -0
- package/packages/ts/index.ts +129 -0
- package/packages/ts/ts-core.ts +0 -0
- package/packages/ts/uniformToMiniUniform.ts +486 -0
- package/src/index.ts +0 -45
- package/tsconfig.json +9 -1
- package/tsup.config.ts +4 -4
- package/vitest.config.ts +34 -0
- package/dist/example.cjs +0 -642
- package/dist/example.cjs.map +0 -1
- package/dist/example.d.cts +0 -2
- package/dist/example.d.ts +0 -2
- package/dist/example.js +0 -618
- package/dist/example.js.map +0 -1
- package/docs/README.md +0 -20
- package/docs/classes/ExampleClass.md +0 -35
- package/docs/functions/gqlSchemaToReferences.md +0 -27
- package/docs/functions/helloWorld.md +0 -17
- package/docs/functions/helloWorldV2.md +0 -33
- package/docs/functions/helloWorldV3.md +0 -35
- package/docs.json +0 -551
- package/references_todo.json +0 -220
- package/src/TypeDocTransformer.ts +0 -572
- /package/{example → packages/ts/__fixtures__/packages}/package-a/package.json +0 -0
- /package/{example → packages/ts/__fixtures__/packages}/package-a/src/index.ts +0 -0
- /package/{example → packages/ts/__fixtures__/packages}/package-a/tsconfig.json +0 -0
- /package/{example → packages/ts/__fixtures__/packages}/package-b/package.json +0 -0
- /package/{example → packages/ts/__fixtures__/packages}/package-b/src/billing.ts +0 -0
- /package/{example → packages/ts/__fixtures__/packages}/package-b/src/index.ts +0 -0
- /package/{example → packages/ts/__fixtures__/packages}/package-b/tsconfig.json +0 -0
package/docs/README.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
**@xyd-sources-examples/package-a**
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
# @xyd-sources-examples/package-a
|
|
6
|
-
|
|
7
|
-
## Classes
|
|
8
|
-
|
|
9
|
-
| Class | Description |
|
|
10
|
-
| ------ | ------ |
|
|
11
|
-
| [ExampleClass](classes/ExampleClass.md) | Returns a personalized hello world message. |
|
|
12
|
-
|
|
13
|
-
## Functions
|
|
14
|
-
|
|
15
|
-
| Function | Description |
|
|
16
|
-
| ------ | ------ |
|
|
17
|
-
| [gqlSchemaToReferences](functions/gqlSchemaToReferences.md) | Converts a GraphQL schema file to references. |
|
|
18
|
-
| [helloWorld](functions/helloWorld.md) | Returns a hello world message. |
|
|
19
|
-
| [helloWorldV2](functions/helloWorldV2.md) | Returns a personalized hello world message. |
|
|
20
|
-
| [helloWorldV3](functions/helloWorldV3.md) | Returns a personalized hello world message. |
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
[**@xyd-sources-examples/package-a**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@xyd-sources-examples/package-a](../README.md) / ExampleClass
|
|
6
|
-
|
|
7
|
-
# Class: ExampleClass
|
|
8
|
-
|
|
9
|
-
Returns a personalized hello world message.
|
|
10
|
-
|
|
11
|
-
## Constructors
|
|
12
|
-
|
|
13
|
-
### Constructor
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
new ExampleClass(): ExampleClass
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
#### Returns
|
|
20
|
-
|
|
21
|
-
`ExampleClass`
|
|
22
|
-
|
|
23
|
-
## Methods
|
|
24
|
-
|
|
25
|
-
### helloWorld()
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
helloWorld(): string
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Returns a hello world message.
|
|
32
|
-
|
|
33
|
-
#### Returns
|
|
34
|
-
|
|
35
|
-
`string`
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
[**@xyd-sources-examples/package-a**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@xyd-sources-examples/package-a](../README.md) / gqlSchemaToReferences
|
|
6
|
-
|
|
7
|
-
# Function: gqlSchemaToReferences()
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
function gqlSchemaToReferences(schemaLocation): Promise<[]>
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Converts a GraphQL schema file to references.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### schemaLocation
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
The location of the schema file.
|
|
22
|
-
|
|
23
|
-
## Returns
|
|
24
|
-
|
|
25
|
-
`Promise`\<\[\]\>
|
|
26
|
-
|
|
27
|
-
references
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
[**@xyd-sources-examples/package-a**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@xyd-sources-examples/package-a](../README.md) / helloWorld
|
|
6
|
-
|
|
7
|
-
# Function: helloWorld()
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
function helloWorld(): string
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Returns a hello world message.
|
|
14
|
-
|
|
15
|
-
## Returns
|
|
16
|
-
|
|
17
|
-
`string`
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
[**@xyd-sources-examples/package-a**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@xyd-sources-examples/package-a](../README.md) / helloWorldV2
|
|
6
|
-
|
|
7
|
-
# Function: helloWorldV2()
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
function helloWorldV2(name, enthusiastic): string
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Returns a personalized hello world message.
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
### name
|
|
18
|
-
|
|
19
|
-
`string`
|
|
20
|
-
|
|
21
|
-
Name of the person to greet.
|
|
22
|
-
|
|
23
|
-
### enthusiastic
|
|
24
|
-
|
|
25
|
-
`boolean` = `false`
|
|
26
|
-
|
|
27
|
-
If true, adds an exclamation point to the greeting.
|
|
28
|
-
|
|
29
|
-
## Returns
|
|
30
|
-
|
|
31
|
-
`string`
|
|
32
|
-
|
|
33
|
-
A greeting message string.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
[**@xyd-sources-examples/package-a**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@xyd-sources-examples/package-a](../README.md) / helloWorldV3
|
|
6
|
-
|
|
7
|
-
# Function: helloWorldV3()
|
|
8
|
-
|
|
9
|
-
```ts
|
|
10
|
-
function helloWorldV3<T>(name): string
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Returns a personalized hello world message.
|
|
14
|
-
|
|
15
|
-
## Type Parameters
|
|
16
|
-
|
|
17
|
-
### T
|
|
18
|
-
|
|
19
|
-
`T`
|
|
20
|
-
|
|
21
|
-
The type of the name.
|
|
22
|
-
|
|
23
|
-
## Parameters
|
|
24
|
-
|
|
25
|
-
### name
|
|
26
|
-
|
|
27
|
-
`T`
|
|
28
|
-
|
|
29
|
-
Name of the person to greet.
|
|
30
|
-
|
|
31
|
-
## Returns
|
|
32
|
-
|
|
33
|
-
`string`
|
|
34
|
-
|
|
35
|
-
A greeting message string.
|