-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix (test issue): modify what asked in review, convert js tests to ty…
…pescript
- Loading branch information
1 parent
f28223c
commit ecaa2e2
Showing
6 changed files
with
58 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
/** | ||
* @description Service configuration object | ||
*/ | ||
export interface ServiceConfig { | ||
/** Pattern of source URLs */ | ||
regex: RegExp; | ||
/** URL scheme to embedded page. Use '<%= remote_id %>' to define a place to insert resource id */ | ||
embedUrl: string; | ||
/** Iframe which contains embedded content */ | ||
html: string; | ||
/** Function to get resource id from RegExp groups */ | ||
id?: (ids: string[]) => string; | ||
/** Embedded content width */ | ||
width?: number; | ||
/** Embedded content height */ | ||
height?: number; | ||
} | ||
|
||
/** | ||
* @description Type for services configuration | ||
*/ | ||
export type ServicesConfigType = { [key: string]: ServiceConfig | boolean }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters