Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/styled-theming
Advanced tools
TypeScript definitions for styled-theming
npm install --save @types/styled-theming
This package contains type definitions for styled-theming (https://github.com/styled-components/styled-theming#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/styled-theming.
import { FlattenInterpolation, ThemedStyledProps, ThemeProps } from "styled-components";
declare function theme(name: string, values: theme.ThemeMap): theme.ThemeSet;
declare namespace theme {
type ThemeValueResult =
| string
| FlattenInterpolation<ThemeProps<any>>
| FlattenInterpolation<ThemedStyledProps<any, any>>;
type ThemeValueFn = (props: object) => ThemeValueResult;
type ThemeValue = ThemeValueFn | ThemeValueResult;
interface ThemeMap {
[key: string]: ThemeValue;
}
type VariantMap<TVariant extends string> = {
[key in TVariant]: ThemeMap;
};
type ThemeSet = (props: object) => string;
type VariantSet<TProp extends string, TVariant extends string> = (props: { [key in TProp]?: TVariant }) => string;
function variants<TProp extends string, TVariant extends string>(
name: string,
prop: TProp,
values: VariantMap<TVariant>,
): VariantSet<TProp, TVariant>;
}
export = theme;
These definitions were written by Arjan Jassal, Hieu Ho, and David Daniell.
FAQs
TypeScript definitions for styled-theming
The npm package @types/styled-theming receives a total of 10,963 weekly downloads. As such, @types/styled-theming popularity was classified as popular.
We found that @types/styled-theming demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.