@prop-styles/core
Advanced tools
Comparing version 0.0.5 to 0.0.6
/*! | ||
* @prop-styles/core version 0.0.5 | ||
* @prop-styles/core version 0.0.6 | ||
* Author: Capricorncd<capricorncd@qq.com> | ||
* Homepage: https://github.com/capricorncd/prop-styles#readme | ||
* Released on: 2024-04-25 23:13:06 (GMT+0900) | ||
* Released on: 2024-04-25 23:51:02 (GMT+0900) | ||
*/ | ||
@@ -7,0 +7,0 @@ /*! |
/*! | ||
* @prop-styles/core version 0.0.5 | ||
* @prop-styles/core version 0.0.6 | ||
* Author: Capricorncd<capricorncd@qq.com> | ||
* Homepage: https://github.com/capricorncd/prop-styles#readme | ||
* Released on: 2024-04-25 23:13:06 (GMT+0900) | ||
* Released on: 2024-04-25 23:51:02 (GMT+0900) | ||
*/ | ||
@@ -7,0 +7,0 @@ (function(o,a){typeof exports=="object"&&typeof module<"u"?a(exports):typeof define=="function"&&define.amd?define(["exports"],a):(o=typeof globalThis<"u"?globalThis:o||self,a(o["prop-styles-core"]={}))})(this,function(o){"use strict";/*! |
@@ -5,4 +5,6 @@ /** | ||
*/ | ||
import type { Property } from 'csstype'; | ||
export function createPropStyles<T extends BaseProps>(props: T, mappings?: PropMappings): Record<string, string>; | ||
export function formatReturn(key: string, value: V, strValue?: string): PropMappingHandlerReturn; | ||
export function formatReturn<K extends string, V>(key: string, value: V, strValue?: string): PropMappingHandlerReturn; | ||
export interface BaseProps { | ||
@@ -9,0 +11,0 @@ // style |
{ | ||
"name": "@prop-styles/core", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "The library provides a static method createPropStyles to create Style objects.", | ||
@@ -43,2 +43,3 @@ "main": "src/index.ts", | ||
"devDependencies": { | ||
"csstype": "^3.1.3", | ||
"vitest": "^1.5.0" | ||
@@ -45,0 +46,0 @@ }, |
@@ -80,2 +80,4 @@ # @prop-styles/core | ||
- @generic `K extends string, V` | ||
- @returns `PropMappingHandlerReturn` see [PropMappingHandlerReturn](#PropMappingHandlerReturn) | ||
@@ -82,0 +84,0 @@ |
21520
348
342
2