@fimbul/ymir
Advanced tools
Comparing version 0.22.0 to 0.24.0-dev.20210214
{ | ||
"name": "@fimbul/ymir", | ||
"version": "0.22.0", | ||
"version": "0.24.0-dev.20210214", | ||
"description": "Core library for the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -366,1 +366,42 @@ import 'reflect-metadata'; | ||
} | ||
export interface StatePersistence { | ||
loadState(project: string): StaticProgramState | undefined; | ||
saveState(project: string, state: StaticProgramState): void; | ||
} | ||
export declare abstract class StatePersistence { | ||
} | ||
export interface StaticProgramState { | ||
/** Version of the cache format */ | ||
readonly v: number; | ||
/** TypeScript version */ | ||
readonly ts: string; | ||
/** Whether the state was created using case-sensitive file names */ | ||
readonly cs: boolean; | ||
/** Hash of compilerOptions */ | ||
readonly options: string; | ||
/** Maps filename to index in 'files' array */ | ||
readonly lookup: Readonly<Record<string, number>>; | ||
/** Index of files that affect global scope */ | ||
readonly global: readonly number[]; | ||
/** Information about all files in the program */ | ||
readonly files: readonly StaticProgramState.FileState[]; | ||
} | ||
export declare namespace StaticProgramState { | ||
interface FileState { | ||
/** Hash of file contents */ | ||
readonly hash: string; | ||
/** | ||
* Key: module specifier as referenced in the file, order may be random | ||
* Value: - `null` if dependency could not be resolved | ||
* - List of files (or rather their index) that the module specifier resolves to. | ||
* That is the actual file at that path and/or files containing `declare module "..."` for that module specifier. | ||
* May contain the current file. | ||
* This list is ordered by the hash of the files ascending, | ||
*/ | ||
readonly dependencies?: Readonly<Record<string, null | readonly number[]>>; | ||
/** The list of findings if this file has up-to-date results */ | ||
readonly result?: readonly Finding[]; | ||
/** Hash of the configuration used to produce `result` for this file */ | ||
readonly config?: string; | ||
} | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FileFilterFactory = exports.LineSwitchParser = exports.FindingFilterFactory = exports.DirectoryService = exports.BuiltinResolver = exports.Resolver = exports.CacheFactory = exports.FormatterLoaderHost = exports.RuleLoaderHost = exports.FileSystem = exports.DeprecationTarget = exports.DeprecationHandler = exports.MessageHandler = exports.AbstractProcessor = exports.Format = exports.ConfigurationProvider = exports.AbstractFormatter = exports.ConfigurableTypedRule = exports.TypedRule = exports.ConfigurableRule = exports.AbstractRule = exports.requiresCompilerOption = exports.requireLibraryFile = exports.excludeDeclarationFiles = exports.typescriptOnly = exports.predicate = exports.Finding = exports.Replacement = exports.GlobalOptions = exports.ConfigurationError = void 0; | ||
exports.StatePersistence = exports.FileFilterFactory = exports.LineSwitchParser = exports.FindingFilterFactory = exports.DirectoryService = exports.BuiltinResolver = exports.Resolver = exports.CacheFactory = exports.FormatterLoaderHost = exports.RuleLoaderHost = exports.FileSystem = exports.DeprecationTarget = exports.DeprecationHandler = exports.MessageHandler = exports.AbstractProcessor = exports.Format = exports.ConfigurationProvider = exports.AbstractFormatter = exports.ConfigurableTypedRule = exports.TypedRule = exports.ConfigurableRule = exports.AbstractRule = exports.requiresCompilerOption = exports.requireLibraryFile = exports.excludeDeclarationFiles = exports.typescriptOnly = exports.predicate = exports.Finding = exports.Replacement = exports.GlobalOptions = exports.ConfigurationError = void 0; | ||
require("reflect-metadata"); | ||
@@ -199,2 +199,5 @@ const ts = require("typescript"); | ||
exports.FileFilterFactory = FileFilterFactory; | ||
class StatePersistence { | ||
} | ||
exports.StatePersistence = StatePersistence; | ||
//# sourceMappingURL=index.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41924
609