@mochabug/adapt-plugin-builder
Version: 
This encapsulate the building an bundling logic for mochabug adapt plugins
64 lines • 1.67 kB
TypeScript
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";
/**
 * Describes the file mochabugapis/adapt/plugins/v1/file.proto.
 */
export declare const file_mochabugapis_adapt_plugins_v1_file: GenFile;
/**
 * File represents a file within a plugin package.
 *
 * @generated from message mochabugapis.adapt.plugins.v1.File
 */
export type File = Message<"mochabugapis.adapt.plugins.v1.File"> & {
    /**
     * The 'name' or 'path' of the file
     *
     * @generated from field: string name = 1;
     */
    name: string;
    /**
     * 'data' contains the actual binary file data.
     *
     * @generated from field: bytes data = 2;
     */
    data: Uint8Array;
    /**
     * The mime type of the file
     *
     * @generated from field: optional string mime_type = 3;
     */
    mimeType?: string;
};
/**
 * File represents a file within a plugin package.
 *
 * @generated from message mochabugapis.adapt.plugins.v1.File
 */
export type FileJson = {
    /**
     * The 'name' or 'path' of the file
     *
     * @generated from field: string name = 1;
     */
    name?: string;
    /**
     * 'data' contains the actual binary file data.
     *
     * @generated from field: bytes data = 2;
     */
    data?: string;
    /**
     * The mime type of the file
     *
     * @generated from field: optional string mime_type = 3;
     */
    mimeType?: string;
};
/**
 * Describes the message mochabugapis.adapt.plugins.v1.File.
 * Use `create(FileSchema)` to create a new message.
 */
export declare const FileSchema: GenMessage<File, {
    jsonType: FileJson;
}>;
//# sourceMappingURL=file_pb.d.ts.map