modules.d.ts 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. declare module 'he' {
  2. function escape(html: string): string
  3. function decode(html: string): string
  4. }
  5. declare module 'source-map' {
  6. class SourceMapGenerator {
  7. setSourceContent(filename: string, content: string): void
  8. addMapping(mapping: Object): void
  9. toString(): string
  10. }
  11. class SourceMapConsumer {
  12. constructor(map: Object)
  13. originalPositionFor(position: {
  14. line: number
  15. column: number
  16. }): {
  17. source: string | null
  18. line: number | null
  19. column: number | null
  20. }
  21. }
  22. }
  23. declare module 'lru-cache' {
  24. var exports: {
  25. (): any
  26. }
  27. }
  28. declare module 'de-indent' {
  29. var exports: {
  30. (input: string): string
  31. }
  32. }
  33. declare module 'serialize-javascript' {
  34. var exports: {
  35. (input: string, options: { isJSON: boolean }): string
  36. }
  37. }
  38. declare module 'lodash.template' {
  39. var exports: {
  40. (input: string, options: { interpolate: RegExp; escape: RegExp }): Function
  41. }
  42. }