Nuxt/examples/auto-imports/composables/composables/use-foo.ts
Clément Ollivier 1a7b570c82
docs(examples): add examples to docs (#3966)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-30 17:59:28 +02:00

24 lines
291 B
TypeScript

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')
}