mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00
chore: add JSDocs
This commit is contained in:
@ -8,6 +8,17 @@ interface PlatformSuffixPluginOptions {
|
||||
// extensions: string[] | (() => string[])
|
||||
}
|
||||
|
||||
/**
|
||||
* The platform suffix plugin will try to resolve files with a platform specifier (suffix)
|
||||
* falling back to the non-platform-specific version.
|
||||
*
|
||||
* For example:
|
||||
* import something from './something.js'
|
||||
*
|
||||
* will first look for './something.<platform>.js'
|
||||
* and if not found look for './something.js'
|
||||
*
|
||||
*/
|
||||
export class PlatformSuffixPlugin {
|
||||
private readonly platform: string;
|
||||
// private readonly extensions: string[]
|
||||
|
Reference in New Issue
Block a user