mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
9 lines
225 B
TypeScript
9 lines
225 B
TypeScript
import wallpaper = require('wallpaper');
|
|
|
|
wallpaper.set('unicorn.jpg').then(() => {});
|
|
wallpaper.set('unicorn.jpg', {scale: 'fill'}).then(() => {});
|
|
|
|
wallpaper.get().then(imagePath => {
|
|
const str: string = imagePath;
|
|
});
|