Comparing version 0.0.9-22 to 0.0.9-24
import { Result } from "@eeue56/ts-core/build/main/lib/result"; | ||
import { Block, CaseStatement, Expression, Function, Import, ObjectLiteralType, Type, TypedBlock } from "./types"; | ||
declare type ScopedValues = Record<string, Type>; | ||
export declare function isSameType(first: Type, second: Type, topLevel: boolean): boolean; | ||
export declare function inferType(expression: Expression, expectedType: Type, typedBlocks: TypedBlock[], imports: Import[]): Result<string, Type>; | ||
export declare function inferType(expression: Expression, expectedType: Type, typedBlocks: TypedBlock[], imports: Import[], valuesInScope: ScopedValues): Result<string, Type>; | ||
export declare function getCasesFromFunction(block: Function): CaseStatement[]; | ||
@@ -9,2 +10,4 @@ export declare function validateAllCasesCovered(block: Block, typedBlocks: TypedBlock[]): string[]; | ||
export declare function findReplacement(inferredType: Type, expectedType: Type, typedBlocks: TypedBlock[]): Type; | ||
export declare function validateType(block: Block, typedBlocks: TypedBlock[], imports: Import[]): Result<string, Type>; | ||
export declare function getValuesInTopLevelScope(blocks: Block[]): ScopedValues; | ||
export declare function validateType(block: Block, typedBlocks: TypedBlock[], imports: Import[], valuesInScope?: ScopedValues): Result<string, Type>; | ||
export {}; |
{ | ||
"name": "derw", | ||
"version": "0.0.9-22", | ||
"version": "0.0.9-24", | ||
"description": "An Elm-inspired language that transpiles to TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1447903
32563