Skip to content

isExpoPushToken — @gj-kit/nest-notifications

A public function from @gj-kit/nest-notifications/expo. The signature below is taken directly from the 0.1.1 release declaration.

import { isExpoPushToken } from '@gj-kit/nest-notifications/expo';
/**
* Expo 전송 게이트웨이 — SDK를 소유하지 않고 **전송 콜백을 주입받는다**(설계 §2.2-C).
*
* SDK에서 실제로 쓰던 것은 셋이었다: 토큰 형태 검사(정규식 한 줄), 청킹(100개 슬라이스),
* 그리고 `POST https://exp.host/--/api/v2/push/send`. 앞의 둘은 순수 함수라 우리가 소유하는
* 편이 낫고(청킹을 소유하면 ticket 대응이 자료구조가 된다), 남는 것은 HTTP 호출 하나이며
* 호스트가 SDK를 쓰든 `fetch`를 쓰든 20줄이다.
*/
/** `ExpoPushToken[…]` / `ExponentPushToken[…]` shape check. No network, no SDK. */
declare function isExpoPushToken(address: string): boolean;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-notifications
  • Version: 0.1.1
  • Public entry: ./expo
  • Source: GitHub