@scaffdog/types
Advanced tools
Comparing version 1.5.0 to 2.0.0-canary.3
import type { Context } from './context'; | ||
export declare type Helper = (context: Context, ...args: any[]) => string; | ||
import type { Variable } from './variable'; | ||
export declare type Helper<T extends any[] = any[]> = (context: Context, ...args: T) => string | Helper | Variable; | ||
export declare type HelperMap = Map<string, Helper>; | ||
export declare type HelperRecord = Record<string, Helper>; | ||
export declare type HelperRegister = (registry: HelperMap) => void; |
@@ -0,1 +1,2 @@ | ||
export declare type SourceRange = [start: number, end: number]; | ||
export declare type SourcePosition = { | ||
@@ -2,0 +3,0 @@ line: number; |
@@ -1,5 +0,5 @@ | ||
export declare type Variable = string | { | ||
[key in string | number]: Variable; | ||
export declare type Variable = undefined | null | string | number | boolean | { | ||
[key in string]: Variable; | ||
} | Variable[]; | ||
export declare type VariableMap = Map<string, Variable>; | ||
export declare type VariableRecord = Record<string, Variable>; |
{ | ||
"name": "@scaffdog/types", | ||
"version": "1.5.0", | ||
"version": "2.0.0-canary.3", | ||
"description": "scaffdog's type declarations.", | ||
@@ -21,13 +21,12 @@ "keywords": [ | ||
"author": "wadackel <wadackel@gmail.com>", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"!lib/**/*.test.js" | ||
"lib" | ||
], | ||
"scripts": { | ||
"typecheck": "tsc --noEmit", | ||
"build": "tsc" | ||
}, | ||
"devDependencies": { | ||
"type-fest": "2.13.1" | ||
"type-fest": "2.18.0" | ||
}, | ||
@@ -37,3 +36,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "a68810b1f96afb3b323481d19117211562e2dd31" | ||
"gitHead": "ec51cd46c9300e7e23678187b1a1493cc4d10ee2" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5702
100
1