@scaffdog/types
Advanced tools
Comparing version 2.4.0 to 2.5.0-canary.0
import { Merge } from 'type-fest'; | ||
declare type TagPair = Readonly<[open: string, close: string]>; | ||
type TagPair = Readonly<[open: string, close: string]>; | ||
declare type Variable = undefined | null | string | number | boolean | { | ||
type Variable = undefined | null | string | number | boolean | { | ||
[key in string]: Variable; | ||
} | Variable[]; | ||
declare type VariableMap = Map<string, Variable>; | ||
declare type VariableRecord = Record<string, Variable>; | ||
type VariableMap = Map<string, Variable>; | ||
type VariableRecord = Record<string, Variable>; | ||
declare type Context = { | ||
type Context = { | ||
cwd: string; | ||
@@ -18,8 +18,8 @@ variables: VariableMap; | ||
declare type Helper<T extends any[] = any[]> = (context: Context, ...args: T) => string | Helper | Variable; | ||
declare type HelperMap = Map<string, Helper>; | ||
declare type HelperRecord = Record<string, Helper>; | ||
declare type HelperRegister = (registry: HelperMap) => void; | ||
type Helper<T extends any[] = any[]> = (context: Context, ...args: T) => string | Helper | Variable; | ||
type HelperMap = Map<string, Helper>; | ||
type HelperRecord = Record<string, Helper>; | ||
type HelperRegister = (registry: HelperMap) => void; | ||
declare type Config = { | ||
type Config = { | ||
files: string[]; | ||
@@ -30,3 +30,3 @@ variables?: VariableRecord; | ||
}; | ||
declare type ResolvedConfig = Merge<Config, { | ||
type ResolvedConfig = Merge<Config, { | ||
variables: VariableMap; | ||
@@ -36,8 +36,8 @@ helpers: HelperMap; | ||
declare type SourceRange = [start: number, end: number]; | ||
declare type SourcePosition = { | ||
type SourceRange = [start: number, end: number]; | ||
type SourcePosition = { | ||
line: number; | ||
column: number; | ||
}; | ||
declare type SourceLocation = { | ||
type SourceLocation = { | ||
start: SourcePosition; | ||
@@ -44,0 +44,0 @@ end: SourcePosition; |
{ | ||
"name": "@scaffdog/types", | ||
"version": "2.4.0", | ||
"version": "2.5.0-canary.0", | ||
"description": "scaffdog's type declarations.", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"dependencies": { | ||
"type-fest": "2.19.0" | ||
"type-fest": "3.5.7" | ||
}, | ||
@@ -29,0 +29,0 @@ "publishConfig": { |
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
3181
1
+ Addedtype-fest@3.5.7(transitive)
- Removedtype-fest@2.19.0(transitive)
Updatedtype-fest@3.5.7