Skip to content

Commit 3f27656

Browse files
committed
fix: update option directives types
1 parent 8f58f26 commit 3f27656

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/directives/if.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import process from 'node:process'
22
import { defineDirective } from '../directive'
33

4-
function resolveConditional(test: string, env = process.env) {
4+
export function resolveConditional(test: string, env = process.env) {
55
test = test || 'true'
66
test = test.trim()
77
test = test.replace(/([^=!])=([^=])/g, '$1==$2')

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export type DirectiveContext = Context
5656

5757
export interface Options {
5858
cwd: string
59-
directives: Directive[] | FunctionDirective[]
59+
directives: (Directive | FunctionDirective)[]
6060
include: FilterPattern
6161
exclude: FilterPattern
6262
}

0 commit comments

Comments
 (0)