message: Update JSONAPISerializer to conform with Serializer interface
diff: @@ -21,7 +21,8 @@ import {
  DateSerializer,
  DateTimeSerializer,
  Serializer,
  - NumberSerializer
  + NumberSerializer,
  + UnknownSerializer
  } from '@orbit/serializers';
  import {
  AddResourceOperation,
  @@ -40,7 +41,7 @@ import {
  } from './resource-document';
  import { RecordDocument } from './record-document';
  -export interface DeserializeOptions {
  +export interface JSONAPISerializationOptions {
  primaryRecord?: Record;
  primaryRecords?: Record[];
  }
  @@ -48,14 +49,20 @@ export interface DeserializeOptions {
  export interface JSONAPISerializerSettings {
  schema: Schema;
  keyMap?: KeyMap;
  - serializers?: Dict<Serializer<any, any>>;
  + serializers?: Dict<UnknownSerializer>;
  }
  export class JSONAPISerializer
  - implements Serializer<RecordDocument, ResourceDocument> {
  + implements
  + Serializer<
  + RecordDocument,
  + ResourceDocument,
  + JSONAPISerializationOptions,
  + JSONAPISerializationOptions
  + > {
  protected _schema: Schema;
  protected _keyMap: KeyMap;
  - protected _serializers: Dict<Serializer<any, any>>;
  + protected _serializers: Dict<UnknownSerializer>;
  constructor(settings: JSONAPISerializerSettings) {
  this._schema = settings.schema;
  @@ -71,7 +78,7 @@ export class JSONAPISerializer
  return this._keyMap;
  }
  - serializerFor(type: string): Serializer<any, any> {
  + serializerFor(type: string): UnknownSerializer {
  return this._serializers[type];
  }
  @@ -417,7 +424,7 @@ export class JSONAPISerializer
  deserialize(
  document: ResourceDocument,
  - options?: DeserializeOptions
  + options?: JSONAPISerializationOptions
  ): RecordDocument {
  let result: RecordDocument;
  let data;
  @@ -727,7 +734,7 @@ export class JSONAPISerializer
  }
  }
  - protected _initSerializers(serializers: Dict<Serializer<any, any>> = {}) {
  + protected _initSerializers(serializers: Dict<UnknownSerializer> = {}) {
  this._serializers = serializers;
  serializers.boolean = serializers.boolean || new BooleanSerializer();
  serializers.string = serializers.string || new StringSerializer();
  