diff --git a/package.json b/package.json index 35d95251..8b20039d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@beforesemicolon/markup", - "version": "0.4.0", + "version": "0.5.0", "description": "HTML Templating System", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/helpers/is-not.helper.ts b/src/helpers/is-not.helper.ts index 59c77063..46f8a82b 100644 --- a/src/helpers/is-not.helper.ts +++ b/src/helpers/is-not.helper.ts @@ -9,7 +9,7 @@ import { val } from '../utils' */ export const isNot = helper( ( - st: StateGetter, + st: T | StateGetter, checker: HelperValueChecker | AnythingButAFunction ) => { return typeof checker === 'function' diff --git a/src/helpers/is.helper.ts b/src/helpers/is.helper.ts index 13e8d9a8..8b7107ae 100644 --- a/src/helpers/is.helper.ts +++ b/src/helpers/is.helper.ts @@ -9,7 +9,7 @@ import { val } from '../utils' */ export const is = helper( ( - st: StateGetter, + st: T | StateGetter, checker: HelperValueChecker | AnythingButAFunction ) => { return typeof checker === 'function' diff --git a/src/helpers/one-of.helper.ts b/src/helpers/one-of.helper.ts index 5cd11616..e437edaf 100644 --- a/src/helpers/one-of.helper.ts +++ b/src/helpers/one-of.helper.ts @@ -7,6 +7,6 @@ import { val } from '../utils' * @param st * @param list */ -export const oneOf = helper((st: StateGetter, list: unknown[]) => { +export const oneOf = helper((st: T | StateGetter, list: unknown[]) => { return list.includes(val(st)) })