mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
604 B
TypeScript
17 lines
604 B
TypeScript
import { CSSStyleDeclaration } from 'cssstyle';
|
|
|
|
// $ExpectType CSSStyleDeclaration
|
|
const style = new CSSStyleDeclaration(text => {
|
|
text; // $ExpectType string
|
|
});
|
|
|
|
style.cssText; // $ExpectType string
|
|
style.length; // $ExpectType number
|
|
|
|
style.getPropertyValue; // $ExpectType (name: string) => string
|
|
style.getPropertyPriority; // $ExpectType (name: string) => string
|
|
style.removeProperty; // $ExpectType (name: string) => string
|
|
style.setProperty; // $ExpectType (name: string, value: string | null, priority?: string | null | undefined) => void
|
|
|
|
style.item; // $ExpectType (index: number) => string
|