Nuxt/examples/with-composables/composables/use-foo.ts

24 lines
291 B
TypeScript
Raw Normal View History

import { useState } from '#app'
export function useA () {
return 'a'
}
function useB () {
return 'b'
}
function _useC () {
return 'c'
}
export const useD = () => {
return 'd'
}
export { useB, _useC as useC }
export default function () {
return useState('foo', () => 'bar')
}