fluent app: Can not import GlideSecureRandomUtil from @servicenow/glide typescript module

jusfory1
Tera Expert

hi all,

 

 I want to use GlideSecureRandomUtil api in my fluent app, but i can't import its type from the module, i found 

annother type SecureRandomUtil defined in that module, how to fix that?
 
//case 1: not type defination, record script include can invoke this api
import { GlideSecureRandomUtil } from '@servicenow/glide';
GlideSecureRandomUtil.getSecureRandomString()


//case 2:  has type defination,but record script include can't invoke, and show error SecureRandomUtil is undefined
import { SecureRandomUtil} from '@servicenow/glide';
SecureRandomUtil.getSecureRandomString()
0 REPLIES 0