UNPKG
typeorm-encrypted
Version:
latest (0.8.0)
0.8.0
0.7.0
0.6.0
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
encrypted typeorm fields
github.com/generalpiston/typeorm-encrypted
generalpiston/typeorm-encrypted
typeorm-encrypted
/
lib
/
entity.d.ts
10 lines
(9 loc)
•
267 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
ObjectLiteral
}
from
'typeorm'
;
/** * Encrypt fields on entity. */
export
declare
function
encrypt<T
extends
ObjectLiteral
>(
entity
:
any
):
any
;
/** * Decrypt fields on entity. */
export
declare
function
decrypt<T
extends
ObjectLiteral
>(
entity
:
any
):
any
;