nitrogen 0.29.4 → 0.29.5
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 +5 -1
- package/lib/autolinking/android/createCMakeExtension.js +3 -0
- package/lib/views/CppHybridViewComponent.js +4 -2
- package/package.json +2 -2
- package/src/autolinking/android/createCMakeExtension.ts +3 -0
- package/src/views/CppHybridViewComponent.ts +6 -3
- package/lib/Logger.d.ts +0 -10
- package/lib/autolinking/Autolinking.d.ts +0 -8
- package/lib/autolinking/android/createCMakeExtension.d.ts +0 -6
- package/lib/autolinking/android/createGradleExtension.d.ts +0 -5
- package/lib/autolinking/android/createHybridObjectInitializer.d.ts +0 -2
- package/lib/autolinking/createAndroidAutolinking.d.ts +0 -11
- package/lib/autolinking/createIOSAutolinking.d.ts +0 -5
- package/lib/autolinking/ios/createHybridObjectInitializer.d.ts +0 -9
- package/lib/autolinking/ios/createPodspecRubyExtension.d.ts +0 -5
- package/lib/autolinking/ios/createSwiftCxxBridge.d.ts +0 -2
- package/lib/autolinking/ios/createSwiftUmbrellaHeader.d.ts +0 -3
- package/lib/config/NitroConfig.d.ts +0 -52
- package/lib/config/NitroUserConfig.d.ts +0 -22
- package/lib/config/getConfig.d.ts +0 -2
- package/lib/createGitAttributes.d.ts +0 -1
- package/lib/createPlatformSpec.d.ts +0 -4
- package/lib/getFiles.d.ts +0 -1
- package/lib/getPlatformSpecs.d.ts +0 -17
- package/lib/index.d.ts +0 -2
- package/lib/init.d.ts +0 -1
- package/lib/nitrogen.d.ts +0 -11
- package/lib/prettifyDirectory.d.ts +0 -1
- package/lib/syntax/BridgedType.d.ts +0 -41
- package/lib/syntax/CodeNode.d.ts +0 -23
- package/lib/syntax/HybridObjectSpec.d.ts +0 -13
- package/lib/syntax/Method.d.ts +0 -41
- package/lib/syntax/Parameter.d.ts +0 -15
- package/lib/syntax/Property.d.ts +0 -50
- package/lib/syntax/SourceFile.d.ts +0 -70
- package/lib/syntax/c++/CppEnum.d.ts +0 -6
- package/lib/syntax/c++/CppHybridObject.d.ts +0 -3
- package/lib/syntax/c++/CppHybridObjectRegistration.d.ts +0 -17
- package/lib/syntax/c++/CppStruct.d.ts +0 -3
- package/lib/syntax/c++/CppUnion.d.ts +0 -6
- package/lib/syntax/c++/getForwardDeclaration.d.ts +0 -3
- package/lib/syntax/c++/includeNitroHeader.d.ts +0 -7
- package/lib/syntax/createType.d.ts +0 -15
- package/lib/syntax/getAllTypes.d.ts +0 -3
- package/lib/syntax/getCustomTypeConfig.d.ts +0 -8
- package/lib/syntax/getInterfaceProperties.d.ts +0 -4
- package/lib/syntax/getReferencedTypes.d.ts +0 -2
- package/lib/syntax/helpers.d.ts +0 -13
- package/lib/syntax/isCoreType.d.ts +0 -9
- package/lib/syntax/kotlin/FbjniHybridObject.d.ts +0 -3
- package/lib/syntax/kotlin/JNINativeRegistrations.d.ts +0 -8
- package/lib/syntax/kotlin/KotlinBoxedPrimitive.d.ts +0 -7
- package/lib/syntax/kotlin/KotlinCxxBridgedType.d.ts +0 -19
- package/lib/syntax/kotlin/KotlinEnum.d.ts +0 -3
- package/lib/syntax/kotlin/KotlinFunction.d.ts +0 -3
- package/lib/syntax/kotlin/KotlinHybridObject.d.ts +0 -3
- package/lib/syntax/kotlin/KotlinHybridObjectRegistration.d.ts +0 -17
- package/lib/syntax/kotlin/KotlinStruct.d.ts +0 -3
- package/lib/syntax/kotlin/KotlinVariant.d.ts +0 -3
- package/lib/syntax/swift/SwiftCxxBridgedType.d.ts +0 -21
- package/lib/syntax/swift/SwiftCxxTypeHelper.d.ts +0 -17
- package/lib/syntax/swift/SwiftEnum.d.ts +0 -3
- package/lib/syntax/swift/SwiftFunction.d.ts +0 -3
- package/lib/syntax/swift/SwiftHybridObject.d.ts +0 -3
- package/lib/syntax/swift/SwiftHybridObjectBridge.d.ts +0 -11
- package/lib/syntax/swift/SwiftHybridObjectRegistration.d.ts +0 -19
- package/lib/syntax/swift/SwiftStruct.d.ts +0 -3
- package/lib/syntax/swift/SwiftVariant.d.ts +0 -3
- package/lib/syntax/types/ArrayBufferType.d.ts +0 -10
- package/lib/syntax/types/BigIntType.d.ts +0 -10
- package/lib/syntax/types/BooleanType.d.ts +0 -10
- package/lib/syntax/types/DateType.d.ts +0 -10
- package/lib/syntax/types/EnumType.d.ts +0 -23
- package/lib/syntax/types/ErrorType.d.ts +0 -11
- package/lib/syntax/types/FunctionType.d.ts +0 -29
- package/lib/syntax/types/HybridObjectBaseType.d.ts +0 -11
- package/lib/syntax/types/HybridObjectType.d.ts +0 -23
- package/lib/syntax/types/MapType.d.ts +0 -10
- package/lib/syntax/types/NamedWrappingType.d.ts +0 -14
- package/lib/syntax/types/NullType.d.ts +0 -10
- package/lib/syntax/types/NumberType.d.ts +0 -10
- package/lib/syntax/types/OptionalType.d.ts +0 -13
- package/lib/syntax/types/PromiseType.d.ts +0 -16
- package/lib/syntax/types/RecordType.d.ts +0 -13
- package/lib/syntax/types/ResultWrappingType.d.ts +0 -13
- package/lib/syntax/types/StringType.d.ts +0 -10
- package/lib/syntax/types/StructType.d.ts +0 -14
- package/lib/syntax/types/TupleType.d.ts +0 -12
- package/lib/syntax/types/Type.d.ts +0 -55
- package/lib/syntax/types/VariantType.d.ts +0 -19
- package/lib/syntax/types/VoidType.d.ts +0 -10
- package/lib/syntax/types/getTypeAs.d.ts +0 -2
- package/lib/utils.d.ts +0 -22
- package/lib/views/CppHybridViewComponent.d.ts +0 -14
- package/lib/views/createHostComponentJs.d.ts +0 -3
- package/lib/views/kotlin/KotlinHybridViewManager.d.ts +0 -3
- package/lib/views/swift/SwiftHybridViewManager.d.ts +0 -3
- package/lib/writeFile.d.ts +0 -5
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Language } from '../../getPlatformSpecs.js';
|
|
2
|
-
import { type SourceFile, type SourceImport } from '../SourceFile.js';
|
|
3
|
-
import type { GetCodeOptions, Type, TypeKind } from './Type.js';
|
|
4
|
-
export declare const VariantLabels: readonly ["first", "second", "third", "fourth", "fifth", "sixth", "seventh", "eigth", "ninth", "tenth"];
|
|
5
|
-
type VariantLabel = (typeof VariantLabels)[number];
|
|
6
|
-
export declare class VariantType implements Type {
|
|
7
|
-
readonly variants: Type[];
|
|
8
|
-
readonly aliasName?: string;
|
|
9
|
-
constructor(variants: Type[], aliasName?: string);
|
|
10
|
-
get canBePassedByReference(): boolean;
|
|
11
|
-
get kind(): TypeKind;
|
|
12
|
-
get jsType(): string;
|
|
13
|
-
get cases(): [VariantLabel, Type][];
|
|
14
|
-
getAliasName(language: Language, options?: GetCodeOptions): string;
|
|
15
|
-
getCode(language: Language, options?: GetCodeOptions): string;
|
|
16
|
-
getExtraFiles(): SourceFile[];
|
|
17
|
-
getRequiredImports(language: Language): SourceImport[];
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Language } from '../../getPlatformSpecs.js';
|
|
2
|
-
import type { SourceFile, SourceImport } from '../SourceFile.js';
|
|
3
|
-
import type { Type, TypeKind } from './Type.js';
|
|
4
|
-
export declare class VoidType implements Type {
|
|
5
|
-
get canBePassedByReference(): boolean;
|
|
6
|
-
get kind(): TypeKind;
|
|
7
|
-
getCode(language: Language): string;
|
|
8
|
-
getExtraFiles(): SourceFile[];
|
|
9
|
-
getRequiredImports(): SourceImport[];
|
|
10
|
-
}
|
package/lib/utils.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SourceFile } from './syntax/SourceFile.js';
|
|
2
|
-
import type { SwiftCxxHelper } from './syntax/swift/SwiftCxxTypeHelper.js';
|
|
3
|
-
import type { Type } from 'ts-morph';
|
|
4
|
-
import { NitroConfig } from './config/NitroConfig.js';
|
|
5
|
-
export declare const NITROGEN_VERSION: string;
|
|
6
|
-
export declare function capitalizeName(name: string): string;
|
|
7
|
-
export declare function createIndentation(spacesCount: number): string;
|
|
8
|
-
export declare function indent(string: string, spacesCount: number): string;
|
|
9
|
-
export declare function indent(string: string, indentation: string): string;
|
|
10
|
-
export declare function errorToString(error: unknown): string;
|
|
11
|
-
export declare function escapeComments(string: string): string;
|
|
12
|
-
export declare function toUnixPath(p: string): string;
|
|
13
|
-
export declare function unsafeFastJoin(...segments: string[]): string;
|
|
14
|
-
/**
|
|
15
|
-
* Deduplicates all files via their full path.
|
|
16
|
-
* If content differs, you are f*cked.
|
|
17
|
-
*/
|
|
18
|
-
export declare function deduplicateFiles(files: SourceFile[]): SourceFile[];
|
|
19
|
-
export declare function filterDuplicateHelperBridges(bridge: SwiftCxxHelper, i: number, array: SwiftCxxHelper[]): boolean;
|
|
20
|
-
export declare function toLowerCamelCase(string: string): string;
|
|
21
|
-
export declare function getBaseTypes(type: Type): Type[];
|
|
22
|
-
export declare function getHybridObjectNitroModuleConfig(type: Type): NitroConfig | undefined;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SourceFile } from '../syntax/SourceFile.js';
|
|
2
|
-
import type { HybridObjectSpec } from '../syntax/HybridObjectSpec.js';
|
|
3
|
-
interface ViewComponentNames {
|
|
4
|
-
propsClassName: `${string}Props`;
|
|
5
|
-
stateClassName: `${string}State`;
|
|
6
|
-
nameVariable: `${string}ComponentName`;
|
|
7
|
-
shadowNodeClassName: `${string}ShadowNode`;
|
|
8
|
-
descriptorClassName: `${string}ComponentDescriptor`;
|
|
9
|
-
component: `${string}Component`;
|
|
10
|
-
manager: `${string}Manager`;
|
|
11
|
-
}
|
|
12
|
-
export declare function getViewComponentNames(spec: HybridObjectSpec): ViewComponentNames;
|
|
13
|
-
export declare function createViewComponentShadowNodeFiles(spec: HybridObjectSpec): SourceFile[];
|
|
14
|
-
export {};
|