repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
keys
/
getPrimaryKey.ts
blob
47ddd9cbaa0c1cb3b8594699ed3652ae9e85bf46
1
import type { KeyPair } from '../interfaces';
2
3
export const getPrimaryKey = <T extends KeyPair>(keys: T[] = []): T | undefined => {
4
return keys[0];
5
};