@fimbul/ymir
Advanced tools
Comparing version 0.13.0-dev.20180718 to 0.13.0-dev.20180726
{ | ||
"name": "@fimbul/ymir", | ||
"version": "0.13.0-dev.20180718", | ||
"version": "0.13.0-dev.20180726", | ||
"description": "Core library for the Fimbullinter project", | ||
@@ -29,3 +29,3 @@ "publishConfig": { | ||
"tslib": "^1.8.1", | ||
"tsutils": "^2.28.0" | ||
"tsutils": "^2.29.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
import 'reflect-metadata'; | ||
import * as ts from 'typescript'; | ||
import { WrappedAst } from 'tsutils'; | ||
import { WrappedAst, BooleanCompilerOptions } from 'tsutils'; | ||
export declare class ConfigurationError extends Error { | ||
@@ -78,2 +78,3 @@ } | ||
export declare function requireLibraryFile(fileName: string): (target: typeof TypedRule) => void; | ||
export declare function requiresCompilerOption(option: BooleanCompilerOptions): (target: typeof TypedRule) => void; | ||
export declare function requiresStrictNullChecks(target: typeof TypedRule): void; | ||
@@ -80,0 +81,0 @@ export declare type RuleSupportsPredicate = (sourceFile: ts.SourceFile, context: RuleSupportsContext) => boolean; |
@@ -72,2 +72,8 @@ "use strict"; | ||
} | ||
function requiresCompilerOption(option) { | ||
return (target) => { | ||
target.supports = combinePredicates(target.supports, (_, context) => tsutils_1.isCompilerOptionEnabled(context.program.getCompilerOptions(), option)); | ||
}; | ||
} | ||
exports.requiresCompilerOption = requiresCompilerOption; | ||
function requiresStrictNullChecks(target) { | ||
@@ -74,0 +80,0 @@ target.supports = combinePredicates(target.supports, (_, context) => tsutils_1.isStrictCompilerOptionEnabled(context.program.getCompilerOptions(), 'strictNullChecks')); |
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
35187
492
Updatedtsutils@^2.29.0