index.d.ts 527 B

12345678910111213141516171819202122232425262728293031323334
  1. interface Position {
  2. start: {
  3. line: number;
  4. column: number;
  5. };
  6. end: {
  7. line: number;
  8. column: number;
  9. };
  10. source?: string;
  11. }
  12. export interface Declaration {
  13. type: 'declaration';
  14. property: string;
  15. value: string;
  16. position: Position;
  17. }
  18. export interface Comment {
  19. type: 'comment';
  20. comment: string;
  21. position: Position;
  22. }
  23. interface Options {
  24. source?: string;
  25. silent?: boolean;
  26. }
  27. export default function InlineStyleParser(
  28. style: string,
  29. options?: Options
  30. ): (Declaration | Comment)[];