This should be possible to do using the document.styleSheets[].rules[].selectorText
and document.styleSheets[].imports[].rules[].selectorText
properties. Refer to MDN documentation.
More Related Contents:
- difference between variables in typescript
- Function that takes an input between 0 and 5 and outputs an array of 5 elements that will be used for generating 5 stars in the UI [closed]
- Angular 2 Sibling Component Communication
- How to convert an array of objects to object with key value pairs
- JS : Convert Array of Strings to Array of Objects
- Inject TypeORM repository into NestJS service for mock data testing
- What is the difference between class method vs. class field function vs. class field arrow function?
- Angular 4 pass data between 2 not related components
- Typescript: No index signature with a parameter of type ‘string’ was found on type ‘{ “A”: string; }
- How to import js-modules into TypeScript file?
- String.Format not work in TypeScript
- How To bind data using TypeScript Controller & Angular Js
- How can I preserve lexical scope in TypeScript with a callback function
- Error: ‘types’ can only be used in a .ts file – Visual Studio Code using @ts-check
- Visual Studio Code syntax highlighting is not working for JavaScript and TypeScript
- Angular2 too many file requests on load
- Workaround for accessing class type arguments in static method in Typescript
- Scroll to element on click in Angular 4
- Typescript dynamically create interface
- Iterate over interface properties in TypeScript
- TypeScript: Why is that my filter method cannot narrow the type and eliminate the undefined and false from the array
- TypeScript TS7015: Element implicitly has an ‘any’ type because index expression is not of type ‘number’
- How to tell if two dates are in the same day or in the same hour? [duplicate]
- Reverse-Mapping for String Enums
- Google Sign-In for Websites and Angular 2 using Typescript
- How to return a promise when writestream finishes?
- how can I use top level “await” in typescript next.js
- flattening the nested object in javascript
- How to prevent Next.js from instantiating a singleton class/object multiple times?
- Declare an array in TypeScript