refactoring

This commit is contained in:
Philipp Kühn 2020-03-27 23:17:28 +01:00
parent 88806db558
commit 1431bc73b3
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
export default function (css: string) {
export default function injectCSS(css: string) {
if (process.env.NODE_ENV !== 'test') {
const style = document.createElement('style')
style.type = 'text/css'

View File

@ -1,4 +1,4 @@
export default function magicMethods (clazz: any) {
export default function magicMethods(clazz: any) {
const classHandler = Object.create(null)
classHandler.construct = (target: any, args: any) => {

View File

@ -1,3 +1,3 @@
export default function minMax(value:number = 0, min:number = 0, max:number = 0): number {
export default function minMax(value: number = 0, min: number = 0, max: number = 0): number {
return Math.min(Math.max(value, min), max)
}