index.uts 309 字节
Newer Older
DCloud-yyl's avatar
DCloud-yyl 已提交
1 2 3 4 5 6 7 8 9 10
import { onThemeChange as  _onThemeChange, OnThemeChangeCallback } from '@dcloudio/uni-runtime'
import {OnThemeChange} from './interface.uts'

export const onThemeChange = defineSyncApi<OnThemeChange>(
    'onThemeChange',
    (callback: OnThemeChangeCallback) => {
        _onThemeChange(callback)
    },
)