Permission 类型
🌐 Permission type
警告:此 API 现已过时。
建议使用 。
语法
🌐 Signature
export type Permission =
| 'accelerometer'
| 'ambient-light-sensor'
| 'background-sync'
| 'camera'
| 'clipboard-read'
| 'clipboard-sanitized-write'
| 'clipboard-write'
| 'geolocation'
| 'gyroscope'
| 'idle-detection'
| 'keyboard-lock'
| 'magnetometer'
| 'microphone'
| 'midi-sysex'
| 'midi'
| 'notifications'
| 'payment-handler'
| 'persistent-storage'
| 'pointer-lock';