node-pcsclite icon indicating copy to clipboard operation
node-pcsclite copied to clipboard

Export interfaces and types

Open jeppech opened this issue 5 years ago • 1 comments

I've exported the types and interfaces. So they can be imported, and used within a project.

A reason for this, would be to type an array of CardReader. Which is one of my usecases, in this instance.

import pcsc, { CardReader } from 'pcsclite'

const pcsclite = pcsc()
const readers: CardReader[] = []

pcsclite.on('reader', (reader) => {
  readers.push(reader)
})

jeppech avatar Sep 22 '20 11:09 jeppech

Any Update for NPM ?

YovanggaAnandhika avatar Oct 03 '22 16:10 YovanggaAnandhika