This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/util/resource.d.ts

41 lines
1.1 KiB
TypeScript
Raw Normal View History

import { Modeling } from "./types";
export declare abstract class Resource implements Modeling {
type: string;
identifier: string;
constructor(type: string, identifier: string);
toModel(): {
type: string;
identifier: string;
};
}
2021-10-25 16:01:44 +08:00
export declare class LocalResource extends Resource {
constructor(path: string);
}
export declare class RemoteResource extends Resource {
constructor(url: string);
}
2021-10-22 17:00:00 +08:00
export declare class Base64Resource extends Resource {
2021-10-25 16:01:44 +08:00
constructor(content: string);
2021-10-22 17:00:00 +08:00
}
/**
* This is for android platform
*/
export declare class DrawableResource extends Resource {
2021-10-25 16:01:44 +08:00
constructor(name: string);
}
2021-10-22 17:00:00 +08:00
export declare class RawResource extends Resource {
2021-10-25 16:01:44 +08:00
constructor(name: string);
2021-10-22 17:00:00 +08:00
}
export declare class AssetResource extends Resource {
constructor(path: string);
}
/**
* This is for iOS platform
*/
export declare class MainBundleResource extends Resource {
2021-10-25 16:51:45 +08:00
constructor(fileName: string);
}
export declare class BundleResource extends Resource {
constructor(bundleName: string, fileName: string);
}