mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-15 01:32:56 +08:00
12 lines
448 B
TypeScript
12 lines
448 B
TypeScript
// Type definitions for wallpaper 2.5
|
|
// Project: https://github.com/sindresorhus/wallpaper#readme
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export function get(): Promise<string>;
|
|
export function set(imagePath: string, options?: WallpaperOptions): Promise<void>;
|
|
|
|
export interface WallpaperOptions {
|
|
scale?: 'fill' | 'fit' | 'stretch' | 'center';
|
|
}
|