santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 125 forks source link

Export interfaces and types #91

Closed jeppech closed 5 months ago

jeppech commented 3 years ago

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)
})
YovanggaAnandhika commented 1 year ago

Any Update for NPM ?

pke commented 7 months ago

Could this please be merged @santigimeno?

pke commented 5 months ago

@jeppech You deleted the PR?

jeppech commented 5 months ago

@pke i deleted my fork of the repo, as we’ve moved on to other hardware, and another library, so yeah i guess, sorry. I do not think, it was going to get merged either, as this PR is almost 4 years Old. You should be able to fork the project yourself, and make the changes.