Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
feat(typescript): SourceMapComment
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 9, 2021
1 parent 0303124 commit f3a7c17
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

export type { default as FileExtension } from './file-extension.type'
export type { default as RegexString } from './regex-string.type'
export type { default as SourceMapComment } from './source-map-comment.type'
export type { default as TrextDefaults } from './trext-defaults.type'
export type { default as TrextToFn } from './trext-to-fn.type'
export type { default as TrextTo } from './trext-to.type'
13 changes: 13 additions & 0 deletions src/types/source-map-comment.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* @file Type Definitions - SourceMapComment
* @module trext/types/SourceMapComment
*/

/**
* String representing a comment referencing a source map.
*
* @template T - File extension name(s)
*/
type SourceMapComment = `//# sourceMappingURL=${string}`

export default SourceMapComment

0 comments on commit f3a7c17

Please sign in to comment.