@cryptic-css/core
Advanced tools
Comparing version 3.9.0 to 3.9.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.9.1](https://github.com/wintercounter/ccss/compare/v3.9.0...v3.9.1) (2020-06-22) | ||
### Bug Fixes | ||
* `d.ts` compilation ([aa65c97](https://github.com/wintercounter/ccss/commit/aa65c97d696af73f0611c4814a62bcae3401990c)) | ||
# [3.9.0](https://github.com/wintercounter/ccss/compare/v3.8.0...v3.9.0) (2020-06-18) | ||
@@ -8,0 +19,0 @@ |
@@ -0,1 +1,2 @@ | ||
// @ts-nocheck | ||
import { createCCSS, createOptions, pipe, mapValue, createValueMap, createProps } from "./"; | ||
@@ -2,0 +3,0 @@ import { objectOutputTransformer } from "./outputTransformers"; |
@@ -7,2 +7,3 @@ "use strict"; | ||
// @ts-nocheck | ||
var valueMap = (0, _.createValueMap)({ | ||
@@ -9,0 +10,0 @@ br: { |
import { CCSSProps, CCSSParser } from './types'; | ||
export declare const getPropTable: () => [string, string, string, CCSSParser?, CCSSParser?][]; | ||
declare type PropTable = [string, string, string, CCSSParser?, CCSSParser?][]; | ||
export declare const getPropTable: () => PropTable; | ||
export declare const createProps: <T>(overrides?: (T & Partial<CCSSProps>) | undefined) => T & Partial<CCSSProps>; | ||
export {}; |
import { CCSSProps, CCSSParser } from './types'; | ||
export declare const getPropTable: () => [string, string, string, CCSSParser?, CCSSParser?][]; | ||
declare type PropTable = [string, string, string, CCSSParser?, CCSSParser?][]; | ||
export declare const getPropTable: () => PropTable; | ||
export declare const createProps: <T>(overrides?: (T & Partial<CCSSProps>) | undefined) => T & Partial<CCSSProps>; | ||
export {}; |
{ | ||
"name": "@cryptic-css/core", | ||
"version": "3.9.0", | ||
"version": "3.9.1", | ||
"description": "> TODO: description", | ||
@@ -5,0 +5,0 @@ "author": "Viktor Vincze <viktor.vincze@doclerholding.com>", |
@@ -76,3 +76,6 @@ import path from 'path' | ||
const replacement = content.replace(/(?<=export interface CCSSProps \{)(.*)/s, generatedPropsContent) | ||
const replacement = content.replace( | ||
/(?<=export interface CCSSProps extends AnyProp \{)(.*)/s, | ||
generatedPropsContent | ||
) | ||
fs.writeFileSync(DIST, replacement) | ||
@@ -79,0 +82,0 @@ } |
@@ -0,1 +1,3 @@ | ||
// @ts-nocheck | ||
import { createCCSS, createOptions, pipe, mapValue, createValueMap, createProps } from '@' | ||
@@ -2,0 +4,0 @@ import { objectOutputTransformer } from './outputTransformers' |
import { CCSSProps, CCSSParser } from './types'; | ||
export declare const getPropTable: () => [string, string, string, CCSSParser?, CCSSParser?][]; | ||
declare type PropTable = [string, string, string, CCSSParser?, CCSSParser?][]; | ||
export declare const getPropTable: () => PropTable; | ||
export declare const createProps: <T>(overrides?: (T & Partial<CCSSProps>) | undefined) => T & Partial<CCSSProps>; | ||
export {}; |
@@ -5,3 +5,5 @@ import { pipe, mapValue, parseArray, parseSingle, toCSSRule, child } from './parsers' | ||
export const getPropTable = (): [string, string, string, CCSSParser?, CCSSParser?][] => { | ||
type PropTable = [string, string, string, CCSSParser?, CCSSParser?][] | ||
export const getPropTable = (): PropTable => { | ||
return [ | ||
@@ -273,3 +275,3 @@ // SVG presentational attributes | ||
const getPropTableObject = () => { | ||
const tableObject = {} as Partial<CCSSProps> | ||
const tableObject = {} as Partial<CCSSProps & { _propTable: PropTable }> | ||
const table = getPropTable() | ||
@@ -276,0 +278,0 @@ tableObject._propTable = table |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2843835
42806